Struct move_ir_types::ast::ModuleName
source · pub struct ModuleName(pub Symbol);
Expand description
Newtype for a name of a module
Tuple Fields§
§0: Symbol
Implementations§
source§impl ModuleName
impl ModuleName
sourcepub fn module_self() -> Self
pub fn module_self() -> Self
Create a new ModuleName
from self_name
.
Trait Implementations§
source§impl Clone for ModuleName
impl Clone for ModuleName
source§fn clone(&self) -> ModuleName
fn clone(&self) -> ModuleName
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 ModuleName
impl Debug for ModuleName
source§impl Display for ModuleName
impl Display for ModuleName
source§impl Hash for ModuleName
impl Hash for ModuleName
source§impl Ord for ModuleName
impl Ord for ModuleName
source§fn cmp(&self, other: &ModuleName) -> Ordering
fn cmp(&self, other: &ModuleName) -> 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<ModuleName> for ModuleName
impl PartialEq<ModuleName> for ModuleName
source§fn eq(&self, other: &ModuleName) -> bool
fn eq(&self, other: &ModuleName) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<ModuleName> for ModuleName
impl PartialOrd<ModuleName> for ModuleName
source§fn partial_cmp(&self, other: &ModuleName) -> Option<Ordering>
fn partial_cmp(&self, other: &ModuleName) -> 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