Mojo struct
NullPointer
struct NullPointer[dtype_: DType, address_space_: AddressSpace = AddressSpace.GENERIC]
Implemented traits
AnyType,
Copyable,
ImplicitlyCopyable,
ImplicitlyDestructible,
Movable,
OptionalPointer,
RegisterPassable,
TrivialRegisterPassable
comptime members
address_space
comptime address_space = address_space_
dtype
comptime dtype = dtype_
is_null
comptime is_null = True
PtrType
comptime PtrType = UnsafePointer[Scalar[NullPointer[dtype_, address_space_].dtype], ImmutAnyOrigin, address_space=NullPointer[dtype_, address_space_].address_space]
Methods
__init__
__init__() -> Self
value
value(self) -> NullPointer[dtype_, address_space_].PtrType
Returns:
NullPointer
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!