Struct resast::expr::ArrowFuncExpr [−][src]
pub struct ArrowFuncExpr<'a> {
pub id: Option<Ident<'a>>,
pub params: Vec<FuncArg<'a>>,
pub body: ArrowFuncBody<'a>,
pub expression: bool,
pub generator: bool,
pub is_async: bool,
}
Expand description
An arrow function
let x = () => y;
let q = x => {
return x + 1;
}
Fields
id: Option<Ident<'a>>
params: Vec<FuncArg<'a>>
body: ArrowFuncBody<'a>
expression: bool
generator: bool
is_async: bool
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<'a> RefUnwindSafe for ArrowFuncExpr<'a>
impl<'a> Send for ArrowFuncExpr<'a>
impl<'a> Sync for ArrowFuncExpr<'a>
impl<'a> Unpin for ArrowFuncExpr<'a>
impl<'a> UnwindSafe for ArrowFuncExpr<'a>
Blanket Implementations
Mutably borrows from an owned value. Read more