[][src]Trait syn::parse::Parse

pub trait Parse: Sized {
    pub fn parse(input: ParseStream<'_>) -> Result<Self>;
}

Parsing interface implemented by all types that can be parsed in a default way from a token stream.

Refer to the module documentation for details about implementing and using the Parse trait.

Required methods

pub fn parse(input: ParseStream<'_>) -> Result<Self>[src]

Loading content...

Implementations on Foreign Types

impl Parse for Option<Label>[src]

impl Parse for Option<BoundLifetimes>[src]

impl Parse for Option<WhereClause>[src]

impl Parse for Option<Abi>[src]

impl<T: Parse> Parse for Box<T>[src]

impl<T: Parse + Token> Parse for Option<T>[src]

impl Parse for TokenStream[src]

impl Parse for TokenTree[src]

impl Parse for Group[src]

impl Parse for Punct[src]

impl Parse for Literal[src]

Loading content...

Implementors

impl Parse for BinOp[src]

impl Parse for Expr[src]

impl Parse for FnArg[src]

impl Parse for ForeignItem[src]

impl Parse for GenericArgument[src]

impl Parse for GenericParam[src]

impl Parse for ImplItem[src]

impl Parse for Item[src]

impl Parse for Lit[src]

impl Parse for Member[src]

impl Parse for Meta[src]

impl Parse for NestedMeta[src]

impl Parse for Pat[src]

impl Parse for RangeLimits[src]

impl Parse for ReturnType[src]

impl Parse for Stmt[src]

impl Parse for TraitBoundModifier[src]

impl Parse for TraitItem[src]

impl Parse for syn::Type[src]

impl Parse for TypeParamBound[src]

impl Parse for UnOp[src]

impl Parse for UseTree[src]

impl Parse for Visibility[src]

impl Parse for WherePredicate[src]

impl Parse for Nothing[src]

impl Parse for Abi[src]

impl Parse for AngleBracketedGenericArguments[src]

impl Parse for Arm[src]

impl Parse for BareFnArg[src]

impl Parse for Binding[src]

impl Parse for Block[src]

impl Parse for BoundLifetimes[src]

impl Parse for ConstParam[src]

impl Parse for Constraint[src]

impl Parse for DeriveInput[src]

impl Parse for ExprArray[src]

impl Parse for ExprAssign[src]

impl Parse for ExprAssignOp[src]

impl Parse for ExprAsync[src]

impl Parse for ExprBinary[src]

impl Parse for ExprBlock[src]

impl Parse for ExprBox[src]

impl Parse for ExprBreak[src]

impl Parse for ExprCall[src]

impl Parse for ExprCast[src]

impl Parse for ExprClosure[src]

impl Parse for ExprContinue[src]

impl Parse for ExprField[src]

impl Parse for ExprForLoop[src]

impl Parse for ExprIf[src]

impl Parse for ExprIndex[src]

impl Parse for ExprLet[src]

impl Parse for ExprLit[src]

impl Parse for ExprLoop[src]

impl Parse for ExprMacro[src]

impl Parse for ExprMatch[src]

impl Parse for ExprMethodCall[src]

impl Parse for ExprParen[src]

impl Parse for ExprPath[src]

impl Parse for ExprRange[src]

impl Parse for ExprReference[src]

impl Parse for ExprRepeat[src]

impl Parse for ExprReturn[src]

impl Parse for ExprStruct[src]

impl Parse for ExprTry[src]

impl Parse for ExprTryBlock[src]

impl Parse for ExprTuple[src]

impl Parse for ExprType[src]

impl Parse for ExprUnary[src]

impl Parse for ExprUnsafe[src]

impl Parse for ExprWhile[src]

impl Parse for ExprYield[src]

impl Parse for FieldValue[src]

impl Parse for FieldsNamed[src]

impl Parse for FieldsUnnamed[src]

impl Parse for File[src]

impl Parse for ForeignItemFn[src]

impl Parse for ForeignItemMacro[src]

impl Parse for ForeignItemStatic[src]

impl Parse for ForeignItemType[src]

impl Parse for Generics[src]

impl Parse for Ident[src]

impl Parse for ImplItemConst[src]

impl Parse for ImplItemMacro[src]

impl Parse for ImplItemMethod[src]

impl Parse for ImplItemType[src]

impl Parse for Index[src]

impl Parse for ItemConst[src]

impl Parse for ItemEnum[src]

impl Parse for ItemExternCrate[src]

impl Parse for ItemFn[src]

impl Parse for ItemForeignMod[src]

impl Parse for ItemImpl[src]

impl Parse for ItemMacro2[src]

impl Parse for ItemMacro[src]

impl Parse for ItemMod[src]

impl Parse for ItemStatic[src]

impl Parse for ItemStruct[src]

impl Parse for ItemTrait[src]

impl Parse for ItemTraitAlias[src]

impl Parse for ItemType[src]

impl Parse for ItemUnion[src]

impl Parse for ItemUse[src]

impl Parse for Label[src]

impl Parse for Lifetime[src]

impl Parse for LifetimeDef[src]

impl Parse for LitBool[src]

impl Parse for LitByte[src]

impl Parse for LitByteStr[src]

impl Parse for LitChar[src]

impl Parse for LitFloat[src]

impl Parse for LitInt[src]

impl Parse for LitStr[src]

impl Parse for syn::Macro[src]

impl Parse for MetaList[src]

impl Parse for MetaNameValue[src]

impl Parse for ParenthesizedGenericArguments[src]

impl Parse for Path[src]

impl Parse for PathSegment[src]

impl Parse for Receiver[src]

impl Parse for Signature[src]

impl Parse for TraitBound[src]

impl Parse for TraitItemConst[src]

impl Parse for TraitItemMacro[src]

impl Parse for TraitItemMethod[src]

impl Parse for TraitItemType[src]

impl Parse for TypeArray[src]

impl Parse for TypeBareFn[src]

impl Parse for TypeGroup[src]

impl Parse for TypeImplTrait[src]

impl Parse for TypeInfer[src]

impl Parse for TypeMacro[src]

impl Parse for TypeNever[src]

impl Parse for TypeParam[src]

impl Parse for TypeParen[src]

impl Parse for TypePath[src]

impl Parse for TypePtr[src]

impl Parse for TypeReference[src]

impl Parse for TypeSlice[src]

impl Parse for TypeTraitObject[src]

impl Parse for TypeTuple[src]

impl Parse for Variant[src]

impl Parse for WhereClause[src]

impl Parse for Abstract[src]

impl Parse for Add[src]

impl Parse for AddEq[src]

impl Parse for And[src]

impl Parse for AndAnd[src]

impl Parse for AndEq[src]

impl Parse for As[src]

impl Parse for Async[src]

impl Parse for At[src]

impl Parse for Auto[src]

impl Parse for Await[src]

impl Parse for Bang[src]

impl Parse for Become[src]

impl Parse for syn::token::Box[src]

impl Parse for Break[src]

impl Parse for Caret[src]

impl Parse for CaretEq[src]

impl Parse for Colon2[src]

impl Parse for Colon[src]

impl Parse for Comma[src]

impl Parse for Const[src]

impl Parse for Continue[src]

impl Parse for Crate[src]

impl Parse for Default[src]

impl Parse for Div[src]

impl Parse for DivEq[src]

impl Parse for Do[src]

impl Parse for Dollar[src]

impl Parse for Dot2[src]

impl Parse for Dot3[src]

impl Parse for Dot[src]

impl Parse for DotDotEq[src]

impl Parse for Dyn[src]

impl Parse for Else[src]

impl Parse for Enum[src]

impl Parse for Eq[src]

impl Parse for EqEq[src]

impl Parse for Extern[src]

impl Parse for FatArrow[src]

impl Parse for Final[src]

impl Parse for Fn[src]

impl Parse for For[src]

impl Parse for Ge[src]

impl Parse for Gt[src]

impl Parse for If[src]

impl Parse for Impl[src]

impl Parse for In[src]

impl Parse for LArrow[src]

impl Parse for Le[src]

impl Parse for Let[src]

impl Parse for Loop[src]

impl Parse for Lt[src]

impl Parse for syn::token::Macro[src]

impl Parse for Match[src]

impl Parse for Mod[src]

impl Parse for Move[src]

impl Parse for MulEq[src]

impl Parse for Mut[src]

impl Parse for Ne[src]

impl Parse for Or[src]

impl Parse for OrEq[src]

impl Parse for OrOr[src]

impl Parse for Override[src]

impl Parse for Pound[src]

impl Parse for Priv[src]

impl Parse for Pub[src]

impl Parse for Question[src]

impl Parse for RArrow[src]

impl Parse for Ref[src]

impl Parse for Rem[src]

impl Parse for RemEq[src]

impl Parse for Return[src]

impl Parse for SelfType[src]

impl Parse for SelfValue[src]

impl Parse for Semi[src]

impl Parse for Shl[src]

impl Parse for ShlEq[src]

impl Parse for Shr[src]

impl Parse for ShrEq[src]

impl Parse for Star[src]

impl Parse for Static[src]

impl Parse for Struct[src]

impl Parse for Sub[src]

impl Parse for SubEq[src]

impl Parse for Super[src]

impl Parse for Tilde[src]

impl Parse for Trait[src]

impl Parse for Try[src]

impl Parse for syn::token::Type[src]

impl Parse for Typeof[src]

impl Parse for Underscore[src]

impl Parse for Union[src]

impl Parse for Unsafe[src]

impl Parse for Unsized[src]

impl Parse for Use[src]

impl Parse for Virtual[src]

impl Parse for Where[src]

impl Parse for While[src]

impl Parse for Yield[src]

Loading content...