Available on crate feature
heap_ptr
only.Expand description
A pointer type for single value heap allocation.
Structs§
- NSTD
Heap Ptr - A pointer type for single value heap allocation.
Functions§
- nstd_
heap_ ptr_ allocator - Returns an immutable reference to a heap object’s allocator.
- nstd_
heap_ ptr_ clone - Creates a clone of a heap allocated object.
- nstd_
heap_ ⚠ptr_ drop - Frees an instance of
NSTDHeapPtr
after invokingcallback
with the heap object’s data. - nstd_
heap_ ptr_ free - Frees an instance of
NSTDHeapPtr
. - nstd_
heap_ ptr_ get - Returns an immutable raw pointer to the object on the heap.
- nstd_
heap_ ptr_ get_ mut - Returns a raw pointer to the object on the heap.
- nstd_
heap_ ⚠ptr_ new - Creates a new initialized heap allocated object.
- nstd_
heap_ ⚠ptr_ new_ zeroed - Creates a new zero-initialized heap allocated object.
- nstd_
heap_ ptr_ size - Returns the size of the heap allocated object.
Type Aliases§
- NSTD
Optional Heap Ptr - Represents an optional value of type
NSTDHeapPtr
.