Struct move_ir_types::ast::QualifiedStructIdent
source · pub struct QualifiedStructIdent {
pub module: ModuleName,
pub name: StructName,
}
Expand description
Identifier for a struct definition. Tells us where to look in the storage layer to find the code associated with the interface
Fields§
§module: ModuleName
Module name and address in which the struct is contained
name: StructName
Name for the struct class. Should be unique among structs published under the same module+address
Implementations§
source§impl QualifiedStructIdent
impl QualifiedStructIdent
sourcepub fn new(module: ModuleName, name: StructName) -> Self
pub fn new(module: ModuleName, name: StructName) -> Self
Creates a new StructType handle from the name of the module alias and the name of the struct
sourcepub fn module(&self) -> &ModuleName
pub fn module(&self) -> &ModuleName
Accessor for the module alias
sourcepub fn name(&self) -> &StructName
pub fn name(&self) -> &StructName
Accessor for the struct name
Trait Implementations§
source§impl Clone for QualifiedStructIdent
impl Clone for QualifiedStructIdent
source§fn clone(&self) -> QualifiedStructIdent
fn clone(&self) -> QualifiedStructIdent
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 QualifiedStructIdent
impl Debug for QualifiedStructIdent
source§impl Display for QualifiedStructIdent
impl Display for QualifiedStructIdent
source§impl Hash for QualifiedStructIdent
impl Hash for QualifiedStructIdent
source§impl Ord for QualifiedStructIdent
impl Ord for QualifiedStructIdent
source§fn cmp(&self, other: &QualifiedStructIdent) -> Ordering
fn cmp(&self, other: &QualifiedStructIdent) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq<QualifiedStructIdent> for QualifiedStructIdent
impl PartialEq<QualifiedStructIdent> for QualifiedStructIdent
source§fn eq(&self, other: &QualifiedStructIdent) -> bool
fn eq(&self, other: &QualifiedStructIdent) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<QualifiedStructIdent> for QualifiedStructIdent
impl PartialOrd<QualifiedStructIdent> for QualifiedStructIdent
source§fn partial_cmp(&self, other: &QualifiedStructIdent) -> Option<Ordering>
fn partial_cmp(&self, other: &QualifiedStructIdent) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read more