pub struct MethodDeclData {
pub modifiers: Option<NodeList>,
pub asterisk_token: bool,
pub name: NodeIndex,
pub question_token: bool,
pub type_parameters: Option<NodeList>,
pub parameters: NodeList,
pub type_annotation: NodeIndex,
pub body: NodeIndex,
}Expand description
Data for method declarations (class methods)
Fields§
§modifiers: Option<NodeList>§asterisk_token: bool§name: NodeIndex§question_token: bool§type_parameters: Option<NodeList>§parameters: NodeList§type_annotation: NodeIndex§body: NodeIndexTrait Implementations§
Source§impl Clone for MethodDeclData
impl Clone for MethodDeclData
Source§fn clone(&self) -> MethodDeclData
fn clone(&self) -> MethodDeclData
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 MethodDeclData
impl Debug for MethodDeclData
Source§impl<'de> Deserialize<'de> for MethodDeclData
impl<'de> Deserialize<'de> for MethodDeclData
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 MethodDeclData
impl RefUnwindSafe for MethodDeclData
impl Send for MethodDeclData
impl Sync for MethodDeclData
impl Unpin for MethodDeclData
impl UnsafeUnpin for MethodDeclData
impl UnwindSafe for MethodDeclData
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