[][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.

Macros

newtype

Creates a new wrapper type. This type is transparent and implements Wrapper

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.