pub struct FunctionData {
pub modifiers: Option<NodeList>,
pub is_async: bool,
pub asterisk_token: bool,
pub name: NodeIndex,
pub type_parameters: Option<NodeList>,
pub parameters: NodeList,
pub type_annotation: NodeIndex,
pub body: NodeIndex,
pub equals_greater_than_token: bool,
}Expand description
Data for function declarations/expressions/arrows
Fields§
§modifiers: Option<NodeList>§is_async: bool§asterisk_token: bool§name: NodeIndex§type_parameters: Option<NodeList>§parameters: NodeList§type_annotation: NodeIndex§body: NodeIndex§equals_greater_than_token: boolTrait Implementations§
Source§impl Clone for FunctionData
impl Clone for FunctionData
Source§fn clone(&self) -> FunctionData
fn clone(&self) -> FunctionData
Returns a duplicate of the value. Read more
1.0.0 · 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 FunctionData
impl Debug for FunctionData
Source§impl<'de> Deserialize<'de> for FunctionData
impl<'de> Deserialize<'de> for FunctionData
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for FunctionData
impl RefUnwindSafe for FunctionData
impl Send for FunctionData
impl Sync for FunctionData
impl Unpin for FunctionData
impl UnsafeUnpin for FunctionData
impl UnwindSafe for FunctionData
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