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>,
}
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>
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
Performs the conversion.
Auto Trait Implementations
impl RefUnwindSafe for ExprClosure
impl !Send for ExprClosure
impl !Sync for ExprClosure
impl Unpin for ExprClosure
impl UnwindSafe for ExprClosure
Blanket Implementations
Mutably borrows from an owned value. Read more