Available on crate feature
core only.Expand description
Provides useful types for memory allocation support.
Structs§
- NSTD
Alloc Layout - Describes a valid layout for a block of memory.
- NSTD
Allocator - A structure of function pointers making up an allocator’s virtual function table.
Enums§
- NSTD
Alloc Error - 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§
- NSTD
Optional Alloc Layout - Represents an optional value of type
NSTDAllocLayout.