Crate syn [] [src]

Macros

do_parse

Structs

AngleBracketedParameterData

A path like Foo<'a, T>

Attribute
BareFnTy
Field
FnArg

An argument in a function header.

FnDecl

Header (not the body) of a function declaration.

Generics
Ident
Item
Lifetime
LifetimeDef
MutTy
ParenthesizedParameterData

A path like Foo(A,B) -> C

Path
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. position represents the index of the associated item qualified with this Self type.

TyParam
TypeBinding

Bind a type to an associated type: A=Foo.

Variant
WhereBoundPredicate

A type bound.

WhereRegionPredicate

A lifetime predicate.

Enums

Body
FunctionRetTy
MetaItem

A compile-time attribute item.

Mutability
PathParameters

Parameters of a path segment.

Style
Ty
TyParamBound
Visibility
WherePredicate

A single predicate in a where clause

Functions

parse_item