Macro typed_element

Source
macro_rules! typed_element {
    ($vis:vis $ElementName:ident $(($name:literal))? $([$AttributeName:ident])? $({ $($attribute:ident $(: $atype:ty)?),* $(,)? })?) => { ... };
    (@NAME_STR $ElementName:ident) => { ... };
    (@NAME_STR $ElementName:ident($name:literal)) => { ... };
}
Available on crate feature typed only.