[][src]Macro spice21::from_opt_type

macro_rules! from_opt_type {
    ( $dest_type:ident, $from_type:ident, $struct_desc:literal, [
        $( ($attr_name:ident, $attr_type:ty, $default:literal, $desc:literal) ),* $(,)?
    ]) => { ... };
}

The from_opt_type derives a type of the form struct { x: X } from struct { x: Option<X> }, given an existing type from_type, and default values for each field.