pub struct MethodDeclaration<'tree> {
pub span: Span,
pub attributes: Option<AttributeList<'tree>>,
pub body: Option<CompoundStatement<'tree>>,
pub name: Name<'tree>,
pub parameters: FormalParameters<'tree>,
pub return_type: Option<MethodDeclarationReturnType<'tree>>,
pub children: Vec<MethodDeclarationChildren<'tree>>,
}Fields§
§span: Span§attributes: Option<AttributeList<'tree>>§body: Option<CompoundStatement<'tree>>§name: Name<'tree>§parameters: FormalParameters<'tree>§return_type: Option<MethodDeclarationReturnType<'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 · 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>
Source§impl<'tree> FromNode<'tree> for MethodDeclaration<'tree>
impl<'tree> FromNode<'tree> 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