#[non_exhaustive]pub struct ArrowFunctionExpr {
pub is_static: bool,
pub by_ref: bool,
pub params: Box<[Param]>,
pub missing_param_list: bool,
pub return_type: Option<TypeHint>,
pub body: Box<Expr>,
pub attributes: Box<[Attribute]>,
}Expand description
An fn arrow function.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.is_static: boolWhether declared static.
by_ref: boolWhether it returns by reference.
params: Box<[Param]>Parameters.
missing_param_list: booltrue when the parameter list is missing its (, which PHP rejects.
return_type: Option<TypeHint>Declared return type.
body: Box<Expr>Result expression.
attributes: Box<[Attribute]>Attributes on the arrow function.
Implementations§
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