Struct ara_parser::tree::definition::function::ConcreteMethodDefinition
source · pub struct ConcreteMethodDefinition {
pub comments: CommentGroup,
pub attributes: Vec<AttributeGroupDefinition>,
pub modifiers: MethodModifierDefinitionGroup,
pub function: usize,
pub name: Identifier,
pub templates: Option<TemplateGroupDefinition>,
pub parameters: FunctionLikeParameterListDefinition,
pub return_type: FunctionLikeReturnTypeDefinition,
pub constraints: Option<MethodDefinitionTypeConstraintGroup>,
pub body: BlockStatement,
}Fields§
§comments: CommentGroup§attributes: Vec<AttributeGroupDefinition>§modifiers: MethodModifierDefinitionGroup§function: usize§name: Identifier§templates: Option<TemplateGroupDefinition>§parameters: FunctionLikeParameterListDefinition§return_type: FunctionLikeReturnTypeDefinition§constraints: Option<MethodDefinitionTypeConstraintGroup>§body: BlockStatementTrait Implementations§
source§impl Clone for ConcreteMethodDefinition
impl Clone for ConcreteMethodDefinition
source§fn clone(&self) -> ConcreteMethodDefinition
fn clone(&self) -> ConcreteMethodDefinition
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 ConcreteMethodDefinition
impl Debug for ConcreteMethodDefinition
source§impl<'de> Deserialize<'de> for ConcreteMethodDefinition
impl<'de> Deserialize<'de> for ConcreteMethodDefinition
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
source§impl JsonSchema for ConcreteMethodDefinition
impl JsonSchema for ConcreteMethodDefinition
source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
source§fn json_schema(gen: &mut SchemaGenerator) -> Schema
fn json_schema(gen: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref keyword. Read moresource§impl Node for ConcreteMethodDefinition
impl Node for ConcreteMethodDefinition
source§fn comments(&self) -> Option<&CommentGroup>
fn comments(&self) -> Option<&CommentGroup>
The comments associated with the node.
source§fn initial_position(&self) -> usize
fn initial_position(&self) -> usize
The position of the first token in the node.
source§fn final_position(&self) -> usize
fn final_position(&self) -> usize
The position of the last token in the node, including the last token itself. Read more
source§impl PartialEq<ConcreteMethodDefinition> for ConcreteMethodDefinition
impl PartialEq<ConcreteMethodDefinition> for ConcreteMethodDefinition
source§fn eq(&self, other: &ConcreteMethodDefinition) -> bool
fn eq(&self, other: &ConcreteMethodDefinition) -> bool
This method tests for
self and other values to be equal, and is used
by ==.