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