IMPORTANT: To view this page as Markdown, append `.md` to the URL (e.g. /max/get-started.md). For the complete documentation index, see llms.txt.
Skip to main content
For the complete documentation index, see llms.txt. Markdown versions of all pages are available by appending .md to any URL (e.g. /max/get-started.md).

Mojo struct

Handle

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

Implemented traits​

AnyType, Copyable, ImplicitlyCopyable, ImplicitlyDeletable, 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__​

def __init__(out self)

__is__​

def __is__(self, other: Backend) -> Bool

Returns:

Bool

__isnot__​

def __isnot__(self, other: Backend) -> Bool

Returns:

Bool

__enter__​

def __enter__(self) -> Self

__exit__​

def __exit__(mut self)