[][src]Macro spice21::attr

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

Spice21 Macros

Note: this module's unusual location, inline in lib.rs, is the best way we've found to import it to the rest of Spice21. Note: this must be defined before any uses of it.

GetAttr-enabled struct builder Creates structs from a list of field-definitions, adding a getattr method enabling by-string access.