Traits§
- 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§
- Compares
ident
andattr
and in case they match ensuresvalue
isSome
and contains aLitBool
. Returnstrue
in caseident
andattr
match, otherwise false. - Compares
ident
andattr
and in case they match ensuresvalue
isSome
and contains aLitStr
. Returnstrue
in caseident
andattr
match, otherwise false. - Compares
ident
andattr
and in case they match ensuresvalue
isNone
. Returnstrue
in caseident
andattr
match, otherwise false. - Checks if a
Type
’s identifier is “Option”.