Module heap_ptr

Source
Available on crate feature heap_ptr only.
Expand description

A pointer type for single value heap allocation.

Structs§

NSTDHeapPtr
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 invoking callback 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§

NSTDOptionalHeapPtr
Represents an optional value of type NSTDHeapPtr.