Crate amplify_syn[−][src]
Amplifying Rust language capabilities: helper functions for creating proc macro libraries
Examples
#[name]
- single form
#[name = "literal"]
- optional single value
#[name = TypeName]
- path value
#[name("literal", TypeName, arg = value)]
- list of arguments
Macros
ident | Convenience macro for constructing [ |
Structs
AttrReq | Structure requirements for parametrized attribute |
MetaArgList | Drop-in replacement for |
MetaArgNameValue | Drop-in replacement for |
ParametrizedAttr | Representation for all allowed forms of |
SingularAttr | Structure describing a procedural macro attribute with an optional value.
The means that if one has something like |
Enums
ArgValue | Value for attribute or attribute argument, i.e. for |
ArgValueReq | Requirements for attribute or named argument value presence |
Attr | Internal structure representation of a proc macro attribute collected
instances having some specific name (accessible via |
Error | Errors representing inconsistency in proc macro attribute structure |
ListReq | Requirements for list elements. For instance, used in |
LiteralClass | Constrains for literal value type |
MetaArg | Drop-in replacement for |
TypeClass | Constrains for the possible types that a Rust value could have. |
ValueClass | Constrains for attribute value type |
ValueReq | Requirements for attribute or named argument value presence for a values
with known class. If the value class is not known, use |