Skip to main content

Mojo struct

Handle

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

Implemented traits

AnyType, Copyable, ImplicitlyCopyable, Movable, UnknownDestructibility

Aliases

__copyinit__is_trivial

comptime __copyinit__is_trivial = False

__del__is_trivial

comptime __del__is_trivial = False

__moveinit__is_trivial

comptime __moveinit__is_trivial = False

resolved_backend

comptime resolved_backend = _resolve_backend[backend]()

type

comptime type = Variant[LegacyUnsafePointer[NoneType], Handle, LegacyUnsafePointer[NoneType]]

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)

Was this page helpful?