Crate untyped_box

Crate untyped_box 

Source
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 for Box and Vec types in std.

Structs§

Allocation
An allocation is management representation of some allocated memory.

Enums§

BoxConversionError
Error when converting an Allocation to a Box.
VecConversionError
Error when converting an Allocation to a Vec.