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<FnArg, 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 if Syn is built with the "full"
feature.
Fields
attrs: Vec<Attribute, Global>
asyncness: Option<Async>
movability: Option<Static>
capture: Option<Move>
or1_token: Or
inputs: Punctuated<FnArg, Comma>
or2_token: Or
output: ReturnType
body: Box<Expr, Global>
Trait Implementations
Performs the conversion.
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
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
Returns a Span
covering the complete contents of this syntax tree
node, or Span::call_site()
if this node is empty. Read more