Module core_extensions::transparent_newtype
source · [−]Available on crate feature
transparent_newtype
only.Expand description
Traits for newtype wrappers.
Traits
Trait for #[repr(transparent)]
newtypes,
which are safe to transmute to/from their contents.
Extension trait for TransparentNewtype
s
Functions
from_inner_vec
alloc
Converts a Vec
of some type into a Vec
of a wrapper around that type.
into_inner_vec
alloc
Converts a Vec
of T
into a Vec
of the type that T
wraps.