Skip to main content

emit_struct_definition

Macro emit_struct_definition 

Source
macro_rules! emit_struct_definition {
    (
        found_exhaustive_attr: false,
        body: { $(#[$attr:meta])* $vis:vis $name:ident { $($field:tt)* } }
    ) => { ... };
    (
        found_exhaustive_attr: true,
        body: { $(#[$attr:meta])* $vis:vis $name:ident { $($field:tt)* } }
    ) => { ... };
}
Expand description

Expands the definition of the record defined at [custom_struct], with either one of an additional private field or with its verbatim fields.