Trait Parse
Source pub trait Parse<'t>: Sized {
// Required method
fn parse(p: &mut Parser<'t>) -> PResult<Self>;
}
Parses a Self from the provided Parser
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.
Parses the parameter list of a Function
Parses a single function parameter
[AddrOf] = (&
|&&
)* [Expr]
[Break] = break
(unconsumed ;
| [Expr])
Parses an enum
definition
[For]: for
[Pattern] in
[Expr] [Block] [Else]?
Parses a [Function] definition
[If] = if
[Expr] [Block] [Else]?
Parses an [Item]
See also: [ItemKind::parse]
Parses an [ItemKind]
See also: [Item::parse]
[Match] = match
[Expr] {
[MatchArm],* }
[MatchArm] = [Pattern] =>
[Expr]
Parses data associated with a [Meta] attribute
Parses a [Path]
See also: [PathPart::parse], [Sym::parse]
[Path] = ::
RelativePath? | RelativePath
RelativePath = [PathPart] (::
[PathPart])*
[Return] = return
(unconsumed ;
| [Expr])
Parses a [Stmt]
See also: [StmtKind::parse]
Parses a [StmtKind]
See also: [Stmt::parse]
Parses a single [StructMember]
Parses a [Ty]
See also: [TyKind::parse]
[TyFn] = fn
[TyTuple] (-> [Ty])?
Parses a [TyKind]
See also: [Ty::parse]
[TyTuple] = (
([Ty] ,
)* [Ty]? )
[While] = while
[Expr] [Block] [Else]?