Crate dyn_sized [] [src]

Provides the DynSized trait, which allows conversion between fat pointers and their (meta, data_pointer) components. derive_DynSized! may be used to implement DynSized for trait objects.

Macros

derive_DynSized

Derives the DynSized trait for trait objects.

Structs

WrapSized

A wrapper type for Sized types that implements DynSized.

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.

PtrExt

An extension trait adding .meta() and .data() convenience methods to built-in pointer types

PtrMutExt

adds the data_mut method to *mut T

Functions

align_of_val

A version of mem::align_of_val that requires only the pointer metadata

size_of_val

A version of mem::size_of_val that requires only the pointer metadata