Expand description
Utility
This module is exempt from the API stability guarantee unless specified otherwise. It’s exposed mostly because it’s needed by macros.
Modules
Structs
Untyped storage of the specified size and alignment.
This is analogous to C++’s
std::aligned_storage_t
.The
AllocError
error indicates an allocation failure
that may be due to resource exhaustion or to
something wrong when combining the given input arguments with this
allocator.Compile-time allocator.
Erases interior mutability by preventing reference forming.
Like
UnsafeCell
, but implements Sync
.Traits
const fn
-compatible core::alloc::Allocator
.Trait for types having a constant default value. This is essentially a
constant version of
Default
.Trait for zero-initializable types.
Type Definitions
A phantom type that is invariant over
T
.