[][src]Crate trapper

trapper

Trapper (or transparent wrapper) allows for the creation of transparent type wrappers, that is types which are transparent and can be wrapped and unwrapped for zero cost.

Re-exports

pub use trapper_macro::newtype;

Traits

Wrapper

A type wrapper. This trait provides methods for converting between a wrapper and its inner type. It should only be implemented by types through the newtype macro. If it must be implemented manually, the type should have transparent representation to be safe.