Module alloc

Module alloc 

Source
Available on crate feature core only.
Expand description

Provides useful types for memory allocation support.

Structs§

NSTDAllocLayout
Describes a valid layout for a block of memory.
NSTDAllocator
A structure of function pointers making up an allocator’s virtual function table.

Enums§

NSTDAllocError
Describes an error returned from allocation functions.

Functions§

nstd_core_alloc_layout_align
Returns the alignment of an NSTDAllocLayout.
nstd_core_alloc_layout_array
Creates a new memory layout for an array of elements.
nstd_core_alloc_layout_array_unchecked
Creates a new memory layout for an array of elements without performing safety checks.
nstd_core_alloc_layout_new
Creates a new memory layout from a size and alignment.
nstd_core_alloc_layout_new_unchecked
Creates a new memory layout from a size and alignment without performing safety checks.
nstd_core_alloc_layout_size
Returns the size of an NSTDAllocLayout.

Type Aliases§

NSTDOptionalAllocLayout
Represents an optional value of type NSTDAllocLayout.