Struct devise::syn::ExprClosure [−][src]
pub struct ExprClosure {
pub attrs: Vec<Attribute, Global>,
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, Global>,
}Expand description
A closure expression: |a, b| a + b.
This type is available only if Syn is built with the "full" feature.
Fields
attrs: Vec<Attribute, Global>asyncness: Option<Async>movability: Option<Static>capture: Option<Move>or1_token: Orinputs: Punctuated<Pat, Comma>or2_token: Oroutput: ReturnTypebody: Box<Expr, Global>Trait Implementations
Performs the conversion.
Auto Trait Implementations
impl RefUnwindSafe for ExprClosureimpl !Send for ExprClosureimpl !Sync for ExprClosureimpl Unpin for ExprClosureimpl UnwindSafe for ExprClosureBlanket Implementations
Mutably borrows from an owned value. Read more
Returns a Span covering the complete contents of this syntax tree
node, or Span::call_site() if this node is empty. Read more