pub struct FunctionLike {
pub decorators: Vec<DecoratorNode>,
pub name: Option<IdentifierNode>,
pub is_async: bool,
pub is_generator: bool,
pub type_parameters: Option<TypeParameterList>,
pub parameters: Vec<ParameterNode>,
pub return_type: Option<TypeAnnotationNode>,
pub body: Option<FunctionBody>,
}Fields§
§decorators: Vec<DecoratorNode>§name: Option<IdentifierNode>§is_async: bool§is_generator: bool§type_parameters: Option<TypeParameterList>§parameters: Vec<ParameterNode>§return_type: Option<TypeAnnotationNode>§body: Option<FunctionBody>Trait Implementations§
Source§impl Clone for FunctionLike
impl Clone for FunctionLike
Source§fn clone(&self) -> FunctionLike
fn clone(&self) -> FunctionLike
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 FunctionLike
impl Debug for FunctionLike
impl Eq for FunctionLike
Source§impl PartialEq for FunctionLike
impl PartialEq for FunctionLike
impl StructuralPartialEq for FunctionLike
Auto Trait Implementations§
impl Freeze for FunctionLike
impl RefUnwindSafe for FunctionLike
impl Send for FunctionLike
impl Sync for FunctionLike
impl Unpin for FunctionLike
impl UnsafeUnpin for FunctionLike
impl UnwindSafe for FunctionLike
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