newtype

Macro newtype 

Source
macro_rules! newtype {
    ($(#[$attr:meta])* $new_v:vis $new_ty:ident $(< $($gen:ident$(: $gen_ty:path)?),* >)? ($v:vis $ty:path)) => { ... };
}
Expand description

Creates a newtype struct implementing From, Deref and DerefMut