Struct valkyrie_ast::MethodDeclaration
source · pub struct MethodDeclaration {
pub name: NamePathNode,
pub annotations: AnnotationNode,
pub generics: ParametersList,
pub parameters: ParametersList,
pub returns: FunctionReturnNode,
pub body: Option<StatementBlock>,
pub span: Range<u32>,
}Expand description
#attribute modifier Trait::method(): Return / Effect { ... }
Fields§
§name: NamePathNodeThe method name which may associated with a trait.
annotations: AnnotationNodeThe modifiers of the node.
generics: ParametersListThy type parameters of this function
parameters: ParametersListThy value parameters of this function
returns: FunctionReturnNode: ReturnType / [EffectType]
body: Option<StatementBlock>{ body }
span: Range<u32>The range of the declaration.
Trait Implementations§
source§impl Clone for MethodDeclaration
impl Clone for MethodDeclaration
source§fn clone(&self) -> MethodDeclaration
fn clone(&self) -> MethodDeclaration
Returns a copy 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 MethodDeclaration
impl Debug for MethodDeclaration
source§impl From<MethodDeclaration> for FlagTerm
impl From<MethodDeclaration> for FlagTerm
source§fn from(o: MethodDeclaration) -> Self
fn from(o: MethodDeclaration) -> Self
Converts to this type from the input type.
source§impl From<MethodDeclaration> for TraitTerm
impl From<MethodDeclaration> for TraitTerm
source§fn from(o: MethodDeclaration) -> Self
fn from(o: MethodDeclaration) -> Self
Converts to this type from the input type.
source§impl From<MethodDeclaration> for UnionTerm
impl From<MethodDeclaration> for UnionTerm
source§fn from(o: MethodDeclaration) -> Self
fn from(o: MethodDeclaration) -> Self
Converts to this type from the input type.
source§impl Hash for MethodDeclaration
impl Hash for MethodDeclaration
source§impl PartialEq for MethodDeclaration
impl PartialEq for MethodDeclaration
source§fn eq(&self, other: &MethodDeclaration) -> bool
fn eq(&self, other: &MethodDeclaration) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Eq for MethodDeclaration
impl StructuralPartialEq for MethodDeclaration
Auto Trait Implementations§
impl RefUnwindSafe for MethodDeclaration
impl Send for MethodDeclaration
impl Sync for MethodDeclaration
impl Unpin for MethodDeclaration
impl UnwindSafe for MethodDeclaration
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