Struct move_lang::hlir::ast::StructDefinition
source · pub struct StructDefinition {
pub attributes: Vec<Attribute>,
pub abilities: AbilitySet,
pub type_parameters: Vec<StructTypeParameter>,
pub fields: StructFields,
}
Fields§
§attributes: Vec<Attribute>
§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 ==
.impl Eq for StructDefinition
impl StructuralEq for StructDefinition
impl StructuralPartialEq for StructDefinition
Auto Trait Implementations§
impl RefUnwindSafe for StructDefinition
impl Send for StructDefinition
impl Sync for StructDefinition
impl Unpin for StructDefinition
impl UnwindSafe for StructDefinition
Blanket Implementations§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.