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>,
}This is supported on crate feature
full only.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: Orinputs: Punctuated<Pat, Comma>or2_token: Oroutput: ReturnTypebody: Box<Expr>Trait Implementations
impl Clone for ExprClosure[src]
impl Clone for ExprClosure[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 ExprClosure[src]
impl Debug for ExprClosure[src]This is supported on crate feature
extra-traits only.impl Eq for ExprClosure[src]
impl Eq for ExprClosure[src]This is supported on crate feature
extra-traits only.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]This is supported on crate feature
extra-traits only.impl Parse for ExprClosure[src]
impl Parse for ExprClosure[src]This is supported on crate feature
parsing only.fn parse(input: ParseStream<'_>) -> Result<Self>[src]
impl PartialEq<ExprClosure> for ExprClosure[src]
impl PartialEq<ExprClosure> for ExprClosure[src]This is supported on crate feature
extra-traits only.impl ToTokens for ExprClosure[src]
impl ToTokens for ExprClosure[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 ExprClosure
impl RefUnwindSafe for ExprClosureimpl !Send for ExprClosure
impl !Send for ExprClosureimpl !Sync for ExprClosure
impl !Sync for ExprClosureimpl Unpin for ExprClosure
impl Unpin for ExprClosureimpl UnwindSafe for ExprClosure
impl UnwindSafe for ExprClosure