Struct move_lang::expansion::ast::StructDefinition
source · pub struct StructDefinition {
pub attributes: Vec<Attribute>,
pub loc: Loc,
pub abilities: AbilitySet,
pub type_parameters: Vec<StructTypeParameter>,
pub fields: StructFields,
}
Fields§
§attributes: Vec<Attribute>
§loc: Loc
§abilities: AbilitySet
§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 ==
.