Struct syn::ExprForLoop [−][src]
pub struct ExprForLoop { pub attrs: Vec<Attribute>, pub label: Option<Label>, pub for_token: For, pub pat: Pat, pub in_token: In, pub expr: Box<Expr>, pub body: Block, }
This is supported on crate feature
full
only.A for loop: for pat in expr { ... }
.
This type is available only if Syn is built with the "full"
feature.
Fields
attrs: Vec<Attribute>
label: Option<Label>
for_token: For
pat: Pat
in_token: In
expr: Box<Expr>
body: Block
Trait Implementations
impl Clone for ExprForLoop
[src]
impl Clone for ExprForLoop
[src]This is supported on crate feature
clone-impls
only.fn clone(&self) -> Self
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for ExprForLoop
[src]
impl Debug for ExprForLoop
[src]This is supported on crate feature
extra-traits
only.impl Eq for ExprForLoop
[src]
impl Eq for ExprForLoop
[src]This is supported on crate feature
extra-traits
only.impl From<ExprForLoop> for Expr
[src]
impl From<ExprForLoop> for Expr
[src]fn from(e: ExprForLoop) -> Expr
[src]
impl Hash for ExprForLoop
[src]
impl Hash for ExprForLoop
[src]This is supported on crate feature
extra-traits
only.impl Parse for ExprForLoop
[src]
impl Parse for ExprForLoop
[src]This is supported on crate feature
parsing
only.fn parse(input: ParseStream<'_>) -> Result<Self>
[src]
impl PartialEq<ExprForLoop> for ExprForLoop
[src]
impl PartialEq<ExprForLoop> for ExprForLoop
[src]This is supported on crate feature
extra-traits
only.impl ToTokens for ExprForLoop
[src]
impl ToTokens for ExprForLoop
[src]This is supported on crate feature
printing
only.fn to_tokens(&self, tokens: &mut TokenStream)
[src]
pub fn to_token_stream(&self) -> TokenStream
[src]
pub fn into_token_stream(self) -> TokenStream
[src]
Auto Trait Implementations
impl RefUnwindSafe for ExprForLoop
impl RefUnwindSafe for ExprForLoop
impl !Send for ExprForLoop
impl !Send for ExprForLoop
impl !Sync for ExprForLoop
impl !Sync for ExprForLoop
impl Unpin for ExprForLoop
impl Unpin for ExprForLoop
impl UnwindSafe for ExprForLoop
impl UnwindSafe for ExprForLoop