Module macros

Source

Functions§

iter_meta_lists
Returns an iterator over the contents of all MetaLists with the specified identifier in an array of Attributes.
match_attribute_with_bool_value
Compares ident and attr and in case they match ensures value is Some and contains a LitBool. Returns true in case ident and attr match, otherwise false.
match_attribute_with_str_list_value
match_attribute_with_str_value
Compares ident and attr and in case they match ensures value is Some and contains a LitStr. Returns true in case ident and attr match, otherwise false.
match_attribute_without_value
Compares ident and attr and in case they match ensures value is None. Returns true in case ident and attr match, otherwise false.
ty_is_option
Checks if a Type’s identifier is “Option”.