Crate thin [] [src]

Provides thin pointer types to dynamically sized types that implement the DynSized trait. By "thin", that means they store the metadata (i.e. slice length or vtable pointer) together with the data, instead of in the pointer itself. Currently provides ThinBox, a thin version of Box.

Reexports

pub extern crate dyn_sized;

Structs

ThinBackend

The storage format for thin pointers. Stores the metadata and the value together.

ThinBox

A thin version of Box.

Traits

AssembleSafe

A marker trait for types implementing DynSized, indicating that the assemble methods are safe because they do not dereference the data pointer.

DynSized

A trait for dynamically sized types, similar in principle to the Sized trait. Allows conversion between fat and thin pointers.

FnMove

A version of FnOnce that takes self by &mut reference instead of by value.