[][src]Crate evobox

A pointer type which allows for safe transformations of its content without reallocation. This crate does not depend on the standard library, and can be used in #![no_std] contexts. It does however require the alloc crate.

For more details look at the documentation of EvolveBox.

Structs

EvolveBox

A pointer type which allows for safe transformations of its content without reallocation.

L

A singly linked list containing types, indexed by itself using the List trait and used by EvolveBox to store all possible types.

Traits

List

A trait used to calculate the current type contained in the EvolveBox at compile time, meaning that there should not be a runtime cost when using an EvolveBox.

ListLayout

A trait used to calculate the size and alignment of an EvolveBox. This trait is unsafe to implement, as returning the wrong alignment or size for any type in the list can easily result in memory unsafety.