pub struct ArrowFunction {
pub is_async: bool,
pub type_parameters: Option<TypeParameterList>,
pub parameters: Vec<ParameterNode>,
pub return_type: Option<TypeAnnotationNode>,
pub body: FunctionBody,
}Fields§
§is_async: bool§type_parameters: Option<TypeParameterList>§parameters: Vec<ParameterNode>§return_type: Option<TypeAnnotationNode>§body: FunctionBodyTrait Implementations§
Source§impl Clone for ArrowFunction
impl Clone for ArrowFunction
Source§fn clone(&self) -> ArrowFunction
fn clone(&self) -> ArrowFunction
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ArrowFunction
impl Debug for ArrowFunction
impl Eq for ArrowFunction
Source§impl PartialEq for ArrowFunction
impl PartialEq for ArrowFunction
impl StructuralPartialEq for ArrowFunction
Auto Trait Implementations§
impl Freeze for ArrowFunction
impl RefUnwindSafe for ArrowFunction
impl Send for ArrowFunction
impl Sync for ArrowFunction
impl Unpin for ArrowFunction
impl UnsafeUnpin for ArrowFunction
impl UnwindSafe for ArrowFunction
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