pub struct MethodDeclaration<'tree> {
pub span: Span,
pub body: Option<MethodDeclarationBody<'tree>>,
pub name: Identifier<'tree>,
pub parameters: ParameterList<'tree>,
pub returns: Type<'tree>,
pub type_parameters: Option<TypeParameterList<'tree>>,
pub children: Vec<MethodDeclarationChildren<'tree>>,
}Fields§
§span: Span§body: Option<MethodDeclarationBody<'tree>>§name: Identifier<'tree>§parameters: ParameterList<'tree>§returns: Type<'tree>§type_parameters: Option<TypeParameterList<'tree>>§children: Vec<MethodDeclarationChildren<'tree>>Trait Implementations§
Source§impl<'tree> Clone for MethodDeclaration<'tree>
impl<'tree> Clone for MethodDeclaration<'tree>
Source§fn clone(&self) -> MethodDeclaration<'tree>
fn clone(&self) -> MethodDeclaration<'tree>
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<'tree> Debug for MethodDeclaration<'tree>
impl<'tree> Debug for MethodDeclaration<'tree>
impl<'tree> Eq for MethodDeclaration<'tree>
Source§impl<'tree> FromNode<'tree> for MethodDeclaration<'tree>
impl<'tree> FromNode<'tree> for MethodDeclaration<'tree>
Source§impl<'tree> PartialEq for MethodDeclaration<'tree>
impl<'tree> PartialEq for MethodDeclaration<'tree>
Source§impl Spanned for MethodDeclaration<'_>
impl Spanned for MethodDeclaration<'_>
impl<'tree> StructuralPartialEq for MethodDeclaration<'tree>
Auto Trait Implementations§
impl<'tree> Freeze for MethodDeclaration<'tree>
impl<'tree> RefUnwindSafe for MethodDeclaration<'tree>
impl<'tree> Send for MethodDeclaration<'tree>
impl<'tree> Sync for MethodDeclaration<'tree>
impl<'tree> Unpin for MethodDeclaration<'tree>
impl<'tree> UnsafeUnpin for MethodDeclaration<'tree>
impl<'tree> UnwindSafe for MethodDeclaration<'tree>
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