Struct move_lang::parser::ast::StructDefinition
source · pub struct StructDefinition {
pub attributes: Vec<Attributes>,
pub loc: Loc,
pub abilities: Vec<Ability>,
pub name: StructName,
pub type_parameters: Vec<StructTypeParameter>,
pub fields: StructFields,
}
Fields§
§attributes: Vec<Attributes>
§loc: Loc
§abilities: Vec<Ability>
§name: StructName
§type_parameters: Vec<StructTypeParameter>
§fields: StructFields
Trait Implementations§
source§impl Clone for StructDefinition
impl Clone for StructDefinition
source§fn clone(&self) -> StructDefinition
fn clone(&self) -> StructDefinition
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 StructDefinition
impl Debug for StructDefinition
source§impl PartialEq<StructDefinition> for StructDefinition
impl PartialEq<StructDefinition> for StructDefinition
source§fn eq(&self, other: &StructDefinition) -> bool
fn eq(&self, other: &StructDefinition) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.