Skip to main content

convert

Macro convert 

Source
macro_rules! convert {
    ($t:ty) => { ... };
}
Expand description

Build a ConvertDecl directly from a bare Rust type: convert!(Millis) is ConvertDecl::new(<Millis as syn::Type>). See ptr_class! for the parsing mechanics.