Crate futures_await_syn [−] [src]
Modules
delimited | |
tokens |
Discrete tokens that can be parsed out by synom. |
Structs
Abi | |
AngleBracketedParameterData |
A path like |
Attribute |
Doc-comments are promoted to attributes that have |
BareFnArg |
An argument in a function type. |
BareFnTy | |
BodyEnum |
It's an enum. |
BodyStruct |
It's a struct. |
BoundLifetimes |
A set of bound lifetimes, e.g. |
DeriveInput |
Struct or enum sent to a |
Expr |
An expression. |
ExprAddrOf |
A referencing operation ( |
ExprArray |
An array, e.g. |
ExprAssign |
An assignment ( |
ExprAssignOp |
An assignment with an operator |
ExprBinary |
A binary operation, e.g. |
ExprBlock |
A block ( |
ExprBox |
A |
ExprBreak |
A |
ExprCall |
A function call. |
ExprCast |
A cast, e.g. |
ExprCatch |
A catch expression. |
ExprClosure |
A closure (for example, |
ExprContinue |
A |
ExprField |
Access of a named struct field ( |
ExprForLoop |
A for loop, with an optional label. |
ExprGroup |
No-op: used solely so we can pretty-print faithfully |
ExprIf |
An |
ExprIfLet |
An |
ExprInPlace |
E.g. 'place <- val' or |
ExprIndex |
An indexing operation ( |
ExprLoop |
Conditionless loop with an optional label. |
ExprMatch |
A |
ExprMethodCall |
A method call ( |
ExprParen |
No-op: used solely so we can pretty-print faithfully |
ExprPath |
Variable reference, possibly containing |
ExprRange |
A range ( |
ExprRepeat |
An array literal constructed from one repeated element. |
ExprRet |
A |
ExprStruct |
A struct literal expression. |
ExprTry |
|
ExprTup |
A tuple, e.g. |
ExprTupField |
Access of an unnamed field of a struct or tuple-struct |
ExprType |
A type ascription, e.g. |
ExprUnary |
A unary operation, e.g. |
ExprWhile |
A while loop, with an optional label |
ExprWhileLet |
A while-let loop, with an optional label. |
ExprYield |
A yield expression. |
Field |
A field of a struct or enum variant. |
Generics |
Represents lifetimes and type parameters attached to a declaration of a function, enum, trait, etc. |
Ident |
A word of Rust code, such as a keyword or variable name. |
ImplGenerics |
Returned by |
Lifetime | |
LifetimeDef |
A lifetime definition, e.g. |
Lit | |
Mac |
Represents a macro invocation. The Path indicates which macro is being invoked, and the vector of token-trees contains the source of the macro invocation. |
MetaItemList |
List meta item. |
MetaNameValue |
Name-value meta item. |
MutTy | |
ParenthesizedParameterData |
A path like |
ParseError | |
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. |
PathTokens | |
PolyTraitRef | |
QSelf |
The explicit Self type in a "qualified path". The actual
path, including the trait and the associated item, is stored
separately. |
Span | |
TokenTree | |
Turbofish |
Returned by |
TyArray |
A fixed length array ( |
TyBareFn |
A bare function (e.g. |
TyGenerics |
Returned by |
TyGroup |
No-op: kept solely so that we can pretty-print faithfully |
TyImplTrait |
An |
TyInfer |
TyKind::Infer means the type should be inferred instead of it having been specified. This can appear anywhere in a type. |
TyNever |
The never type ( |
TyParam |
A generic type parameter, e.g. |
TyParen |
No-op; kept solely so that we can pretty-print faithfully |
TyPath |
A path ( |
TyPtr |
A raw pointer ( |
TyRptr |
A reference ( |
TySlice |
A variable-length array ( |
TyTraitObject |
A trait object type |
TyTup |
A tuple ( |
TypeBinding |
Bind a type to an associated type: |
Variant |
An enum variant. |
VisCrate |
Crate-visible, i.e. |
VisInherited |
Inherited, i.e. private. |
VisPublic |
Public, i.e. |
VisRestricted |
Restricted, e.g. |
WhereBoundPredicate |
A type binding, e.g. |
WhereClause |
A |
WhereEqPredicate |
An equality predicate (unsupported) |
WhereRegionPredicate |
A lifetime predicate, e.g. |
Enums
AbiKind | |
AttrStyle |
Distinguishes between Attributes that decorate items and Attributes that are contained as statements within items. These two cases need to be distinguished for pretty-printing. |
BareFnArgName |
Names of arguments in the |
BinOp | |
Body |
Body of a derived struct or enum. |
ExprKind | |
FunctionRetTy | |
LitKind | |
MetaItem |
A compile-time attribute item. |
Mutability | |
NestedMetaItem |
Possible values inside of compile-time attribute lists. |
PathParameters |
Parameters of a path segment. |
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.
|
UnOp | |
Unsafety | |
VariantData |
Data stored within an enum variant or struct. |
Visibility |
Visibility level of an item. |
WherePredicate |
A single predicate in a |
Functions
parse |
Parse tokens of source code into the chosen syn data type. |
parse_str |
Parse a string of Rust code into the chosen syn data type. |
parse_tokens |
Parse a |