Traits§
- Attr
Parse - The
AttrParsetrait is a generic interface for attribute structures. This is only implemented directly by thecrate::def_attrsmacro, within thezbus_macroscrate. This macro allows the parsing of multiple variants when using thecrate::old_newmacro pattern, using<T: AttrParse>as a bounds check at compile time.
Functions§
- iter_
meta_ lists - Returns an iterator over the contents of all
MetaLists with the specified identifier in an array ofAttributes. - match_
attribute_ with_ bool_ value - Compares
identandattrand in case they match ensuresvalueisSomeand contains aLitBool. Returnstruein caseidentandattrmatch, otherwise false. - match_
attribute_ with_ str_ list_ value - match_
attribute_ with_ str_ value - Compares
identandattrand in case they match ensuresvalueisSomeand contains aLitStr. Returnstruein caseidentandattrmatch, otherwise false. - match_
attribute_ without_ value - Compares
identandattrand in case they match ensuresvalueisNone. Returnstruein caseidentandattrmatch, otherwise false. - ty_
is_ option - Checks if a
Type’s identifier is “Option”.