Traits§
- Attr
Parse - The
AttrParse
trait is a generic interface for attribute structures. This is only implemented directly by thecrate::def_attrs
macro, within thezbus_macros
crate. This macro allows the parsing of multiple variants when using thecrate::old_new
macro pattern, using<T: AttrParse>
as a bounds check at compile time.
Functions§
- iter_
meta_ lists - Returns an iterator over the contents of all
MetaList
s with the specified identifier in an array ofAttribute
s. - match_
attribute_ with_ bool_ value - Compares
ident
andattr
and in case they match ensuresvalue
isSome
and contains aLitBool
. Returnstrue
in caseident
andattr
match, otherwise false. - match_
attribute_ with_ str_ list_ value - match_
attribute_ with_ str_ value - Compares
ident
andattr
and in case they match ensuresvalue
isSome
and contains aLitStr
. Returnstrue
in caseident
andattr
match, otherwise false. - match_
attribute_ without_ value - Compares
ident
andattr
and in case they match ensuresvalue
isNone
. Returnstrue
in caseident
andattr
match, otherwise false. - ty_
is_ option - Checks if a
Type
’s identifier is “Option”.