Mojo struct
NonNullPointer
@register_passable(trivial)
struct NonNullPointer[dtype_: DType]
Fields
- ptr (
UnsafePointer[Scalar[dtype_]]
):
Implemented traits
AnyType
,
Copyable
,
ImplicitlyCopyable
,
Movable
,
OptionalPointer
,
UnknownDestructibility
Aliases
__copyinit__is_trivial
alias __copyinit__is_trivial = True
__del__is_trivial
alias __del__is_trivial = True
__moveinit__is_trivial
alias __moveinit__is_trivial = True
dtype
alias dtype = dtype_
is_null
alias is_null = False
Methods
__init__
__init__(ptr: UnsafePointer[Scalar[dtype_]]) -> Self
value
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!