pub trait Parsewhere
Self: Sized,{
// Required method
fn parse(p: &mut Parser<'_>) -> Result<Self>;
}
Expand description
The parse trait, implemented by items that can be parsed.
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.
Implementations on Foreign Types§
Implementors§
impl Parse for AttrStyle
impl Parse for Condition
impl Parse for Expr
impl Parse for ExprClosureArgs
impl Parse for ExprRangeLimits
impl Parse for ExprSelectBranch
impl Parse for Fields
impl Parse for FnArg
impl Parse for Item
impl Parse for ItemModBody
impl Parse for ItemOrExpr
impl Parse for ItemUseSegment
impl Parse for Lit
impl Parse for ObjectIdent
impl Parse for ObjectKey
impl Parse for Pat
impl Parse for PathSegment
impl Parse for Stmt
impl Parse for UnOp
impl Parse for Visibility
impl Parse for Abstract
impl Parse for AlignOf
impl Parse for Amp
impl Parse for AmpAmp
impl Parse for AmpEq
impl Parse for Arrow
impl Parse for As
impl Parse for Async
impl Parse for At
impl Parse for Attribute
impl Parse for Await
impl Parse for Bang
impl Parse for BangEq
impl Parse for Become
impl Parse for Block
impl Parse for Break
impl Parse for Caret
impl Parse for CaretEq
impl Parse for CloseBrace
impl Parse for CloseBracket
impl Parse for CloseEmpty
impl Parse for CloseParen
impl Parse for Colon
impl Parse for ColonColon
impl Parse for Comma
impl Parse for Const
impl Parse for Continue
impl Parse for Crate
impl Parse for Dash
impl Parse for DashEq
impl Parse for Default
impl Parse for Div
impl Parse for Do
impl Parse for Dollar
impl Parse for Dot
impl Parse for DotDot
impl Parse for DotDotEq
impl Parse for Else
impl Parse for EmptyBlock
impl Parse for Enum
impl Parse for Eq
impl Parse for EqEq
impl Parse for ExprAssign
impl Parse for ExprAwait
impl Parse for ExprBinary
impl Parse for ExprBlock
impl Parse for ExprBreak
impl Parse for ExprCall
impl Parse for ExprClosure
impl Parse for ExprContinue
impl Parse for ExprDefaultBranch
impl Parse for ExprElse
impl Parse for ExprElseIf
impl Parse for ExprEmpty
impl Parse for ExprFieldAccess
impl Parse for ExprFor
impl Parse for ExprGroup
impl Parse for ExprIf
impl Parse for ExprIndex
impl Parse for ExprLet
impl Parse for ExprLit
impl Parse for ExprLoop
impl Parse for ExprMatch
impl Parse for ExprMatchBranch
impl Parse for ExprObject
impl Parse for ExprRange
impl Parse for ExprReturn
impl Parse for ExprSelect
impl Parse for ExprSelectPatBranch
impl Parse for ExprTry
impl Parse for ExprTuple
impl Parse for ExprUnary
impl Parse for ExprVec
impl Parse for ExprWhile
impl Parse for ExprYield
impl Parse for Extern
impl Parse for False
impl Parse for Field
impl Parse for FieldAssign
impl Parse for File
impl Parse for Final
impl Parse for Fn
impl Parse for For
impl Parse for Group
impl Parse for Gt
impl Parse for GtEq
impl Parse for GtGt
impl Parse for GtGtEq
impl Parse for Ident
impl Parse for If
impl Parse for Impl
impl Parse for In
impl Parse for Is
impl Parse for ItemConst
impl Parse for ItemEnum
impl Parse for ItemFn
impl Parse for ItemImpl
impl Parse for ItemInlineBody
impl Parse for ItemMod
impl Parse for ItemStruct
impl Parse for ItemUse
impl Parse for ItemUsePath
impl Parse for ItemVariant
impl Parse for Label
impl Parse for Let
impl Parse for LitBool
impl Parse for LitByte
impl Parse for LitByteStr
impl Parse for LitChar
impl Parse for LitNumber
impl Parse for LitStr
impl Parse for Local
impl Parse for Loop
impl Parse for Lt
impl Parse for LtEq
impl Parse for LtLt
impl Parse for LtLtEq
impl Parse for Macro
impl Parse for MacroCall
impl Parse for Match
impl Parse for Mod
impl Parse for Move
impl Parse for Mut
impl Parse for Not
impl Parse for OffsetOf
impl Parse for OpenBrace
impl Parse for OpenBracket
impl Parse for OpenEmpty
impl Parse for OpenParen
impl Parse for Override
impl Parse for PatBinding
impl Parse for Path
impl Parse for PathSegmentExpr
impl Parse for Perc
impl Parse for PercEq
impl Parse for Pipe
impl Parse for PipeEq
impl Parse for PipePipe
impl Parse for Plus
impl Parse for PlusEq
impl Parse for Pound
impl Parse for Priv
impl Parse for Proc
impl Parse for Pub
impl Parse for Pure
impl Parse for QuestionMark
impl Parse for Ref
impl Parse for Return
impl Parse for Rocket
impl Parse for Select
impl Parse for SelfType
impl Parse for SelfValue
impl Parse for SemiColon
impl Parse for Shebang
impl Parse for SizeOf
impl Parse for SlashEq
impl Parse for Star
impl Parse for StarEq
impl Parse for Static
impl Parse for Struct
impl Parse for Super
impl Parse for Tilde
impl Parse for Token
impl Parse for True
impl Parse for TypeOf
impl Parse for Underscore
impl Parse for Unsafe
impl Parse for Use
impl Parse for Virtual
impl Parse for While
impl Parse for Yield
impl Parse for ItemId
impl Parse for FormatArgs
impl Parse for TokenStream
impl<T> Parse for Box<T>where
T: Parse,
Parse implementation for something that is boxed.
impl<T> Parse for Vec<T>
Parser implementation for a vector.