Expand description
§untyped-box
A Box<T> represents a heap allocation of a value of type T. This crate provides an untyped heap allocation type Allocation.
This is useful to avoid monomorphizations on T, share code paths going through the allocator, while upholding safety invariants.
The allocator contract of the unsafe allocation methods is quite strict and easy to misuse.
This primitive can be used as a safe layer on top to avoid dealing with the allocation methods directly.
§Available features
nightly-std-conversions: Requires nightly and enables additional conversions forBoxandVectypes in std.
Structs§
- Allocation
- An allocation is management representation of some allocated memory.
Enums§
- BoxConversion
Error - Error when converting an Allocation to a Box.
- VecConversion
Error - Error when converting an Allocation to a Vec.