Struct syn::ExprClosure [−][src]
pub struct ExprClosure { pub attrs: Vec<Attribute>, pub asyncness: Option<Async>, pub movability: Option<Static>, pub capture: Option<Move>, pub or1_token: Or, pub inputs: Punctuated<Pat, Comma>, pub or2_token: Or, pub output: ReturnType, pub body: Box<Expr>, }
A closure expression: |a, b| a + b
.
This type is available only if Syn is built with the "full"
feature.
Fields
attrs: Vec<Attribute>
asyncness: Option<Async>
movability: Option<Static>
capture: Option<Move>
or1_token: Or
inputs: Punctuated<Pat, Comma>
or2_token: Or
output: ReturnType
body: Box<Expr>
Trait Implementations
impl Clone for ExprClosure
[src]
impl Clone for ExprClosure
[src]fn clone(&self) -> Self
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl From<ExprClosure> for Expr
[src]
impl From<ExprClosure> for Expr
[src]fn from(e: ExprClosure) -> Expr
[src]
impl Hash for ExprClosure
[src]
impl Hash for ExprClosure
[src]impl Parse for ExprClosure
[src]
impl Parse for ExprClosure
[src]fn parse(input: ParseStream<'_>) -> Result<Self>
[src]
impl PartialEq<ExprClosure> for ExprClosure
[src]
impl PartialEq<ExprClosure> for ExprClosure
[src]impl ToTokens for ExprClosure
[src]
impl ToTokens for ExprClosure
[src]