Module bump_into::layout_of

source ·
Expand description

Types implementing Into<Option<Layout>>, for use with BumpInto::available_spaces and BumpInto::alloc_space.

These are mostly an implementation detail, but they may be useful to users of the crate. By using one of these types, you allow the conversion to be inlined into the function that calls it, which may enable significant optimizations by the compiler.

Structs

The layout of a [T; len], with len known at runtime.
The layout of a single value of type T.