Skip to main content

Mojo struct

Handle

struct Handle[backend: Backend = _resolve_backend[Backend.AUTOMATIC]()]

Implemented traits​

AnyType, Copyable, ImplicitlyCopyable, ImplicitlyDestructible, Movable

comptime members​

resolved_backend​

comptime resolved_backend = _resolve_backend[backend]()

type​

comptime type = Variant[Optional[UnsafePointer[NoneType, MutAnyOrigin]], Handle, Optional[UnsafePointer[NoneType, MutAnyOrigin]]]

Methods​

__init__​

__init__(out self)

__is__​

__is__(self, other: Backend) -> Bool

Returns:

Bool

__isnot__​

__isnot__(self, other: Backend) -> Bool

Returns:

Bool

__enter__​

__enter__(self) -> Self

__exit__​

__exit__(mut self)