Crate syn [−] [src]
Structs
AngleBracketedParameterData |
A path like |
Attribute |
Doc-comments are promoted to attributes that have |
BareFnTy | |
Discriminant | |
Field | |
FnArg |
An argument in a function header. |
FnDecl |
Header (not the body) of a function declaration. |
Generics |
Represents lifetimes and type parameters attached to a declaration of a function, enum, trait, etc. |
Ident | |
Lifetime | |
LifetimeDef |
A lifetime definition, e.g. |
MacroInput | |
MutTy | |
ParenthesizedParameterData |
A path like |
Path |
A "Path" is essentially Rust's notion of a name. |
PathSegment |
A segment of a path: an identifier, an optional lifetime, and a set of types. |
PolyTraitRef | |
QSelf |
The explicit Self type in a "qualified path". The actual
path, including the trait and the associated item, is stored
separately. |
TyParam | |
TypeBinding |
Bind a type to an associated type: |
Variant | |
WhereBoundPredicate |
A type bound. |
WhereClause |
A |
WhereRegionPredicate |
A lifetime predicate. |
Enums
Body | |
FloatTy | |
FunctionRetTy | |
IntTy | |
Lit |
Literal kind. |
MetaItem |
A compile-time attribute item. |
Mutability | |
PathParameters |
Parameters of a path segment. |
StrStyle | |
TraitBoundModifier |
A modifier on a bound, currently this is only used for |
Ty |
The different kinds of types recognized by the compiler |
TyParamBound |
The AST represents all type param bounds as types.
|
VariantData | |
Visibility | |
WherePredicate |
A single predicate in a |
Functions
parse_macro_input | |
parse_path | |
parse_type | |
parse_where_clause |