Skip to main content

from_self_to_native_type

Macro from_self_to_native_type 

Source
macro_rules! from_self_to_native_type {
    ($SelfT:ty, $($to:ty)*) => { ... };
}
Expand description

This macro implements conversions from Unsigned*Bit to native types which are always possible (e.g. From<Unsigned9Bit> for i16).