Struct move_ir_types::ast::ModuleIdent
source · pub struct ModuleIdent {
pub name: ModuleName,
pub address: AccountAddress,
}
Expand description
Newtype of the address + the module name
addr.m
Fields§
§name: ModuleName
Name for the module. Will be unique among modules published under the same address
address: AccountAddress
Address that this module is published under
Implementations§
source§impl ModuleIdent
impl ModuleIdent
sourcepub fn new(name: ModuleName, address: AccountAddress) -> Self
pub fn new(name: ModuleName, address: AccountAddress) -> Self
Creates a new fully qualified module identifier from the module name and the address at which it is published
sourcepub fn name(&self) -> &ModuleName
pub fn name(&self) -> &ModuleName
Accessor for the name of the fully qualified module identifier
Trait Implementations§
source§impl Clone for ModuleIdent
impl Clone for ModuleIdent
source§fn clone(&self) -> ModuleIdent
fn clone(&self) -> ModuleIdent
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 ModuleIdent
impl Debug for ModuleIdent
source§impl Display for ModuleIdent
impl Display for ModuleIdent
source§impl Hash for ModuleIdent
impl Hash for ModuleIdent
source§impl Ord for ModuleIdent
impl Ord for ModuleIdent
source§fn cmp(&self, other: &ModuleIdent) -> Ordering
fn cmp(&self, other: &ModuleIdent) -> 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<ModuleIdent> for ModuleIdent
impl PartialEq<ModuleIdent> for ModuleIdent
source§fn eq(&self, other: &ModuleIdent) -> bool
fn eq(&self, other: &ModuleIdent) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<ModuleIdent> for ModuleIdent
impl PartialOrd<ModuleIdent> for ModuleIdent
source§fn partial_cmp(&self, other: &ModuleIdent) -> Option<Ordering>
fn partial_cmp(&self, other: &ModuleIdent) -> 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