pub struct ArrowFunctionExpr {
pub is_static: bool,
pub by_ref: bool,
pub params: Box<[Param]>,
pub return_type: Option<TypeHint>,
pub body: Box<Expr>,
pub attributes: Box<[Attribute]>,
}Expand description
An fn arrow function.
Fields§
§is_static: boolWhether declared static.
by_ref: boolWhether it returns by reference.
params: Box<[Param]>Parameters.
return_type: Option<TypeHint>Declared return type.
body: Box<Expr>Result expression.
attributes: Box<[Attribute]>Attributes on the arrow function.
Trait Implementations§
Source§impl Clone for ArrowFunctionExpr
impl Clone for ArrowFunctionExpr
Source§impl Debug for ArrowFunctionExpr
impl Debug for ArrowFunctionExpr
Auto Trait Implementations§
impl Freeze for ArrowFunctionExpr
impl RefUnwindSafe for ArrowFunctionExpr
impl Send for ArrowFunctionExpr
impl Sync for ArrowFunctionExpr
impl Unpin for ArrowFunctionExpr
impl UnsafeUnpin for ArrowFunctionExpr
impl UnwindSafe for ArrowFunctionExpr
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more