Struct move_model::ast::QualifiedSymbol
source · pub struct QualifiedSymbol {
pub module_name: ModuleName,
pub symbol: Symbol,
}
Fields§
§module_name: ModuleName
§symbol: Symbol
Implementations§
source§impl QualifiedSymbol
impl QualifiedSymbol
sourcepub fn display<'a>(&'a self, pool: &'a SymbolPool) -> QualifiedSymbolDisplay<'a>
pub fn display<'a>(&'a self, pool: &'a SymbolPool) -> QualifiedSymbolDisplay<'a>
Creates a value implementing the Display trait which shows this symbol, including module name but excluding address.
sourcepub fn display_simple<'a>(
&'a self,
pool: &'a SymbolPool
) -> QualifiedSymbolDisplay<'a>
pub fn display_simple<'a>( &'a self, pool: &'a SymbolPool ) -> QualifiedSymbolDisplay<'a>
Creates a value implementing the Display trait which shows this qualified symbol, excluding module name.
sourcepub fn display_full<'a>(
&'a self,
pool: &'a SymbolPool
) -> QualifiedSymbolDisplay<'a>
pub fn display_full<'a>( &'a self, pool: &'a SymbolPool ) -> QualifiedSymbolDisplay<'a>
Creates a value implementing the Display trait which shows this symbol, including module name with address.
Trait Implementations§
source§impl Clone for QualifiedSymbol
impl Clone for QualifiedSymbol
source§fn clone(&self) -> QualifiedSymbol
fn clone(&self) -> QualifiedSymbol
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 QualifiedSymbol
impl Debug for QualifiedSymbol
source§impl Hash for QualifiedSymbol
impl Hash for QualifiedSymbol
source§impl Ord for QualifiedSymbol
impl Ord for QualifiedSymbol
source§fn cmp(&self, other: &QualifiedSymbol) -> Ordering
fn cmp(&self, other: &QualifiedSymbol) -> 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<QualifiedSymbol> for QualifiedSymbol
impl PartialEq<QualifiedSymbol> for QualifiedSymbol
source§fn eq(&self, other: &QualifiedSymbol) -> bool
fn eq(&self, other: &QualifiedSymbol) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<QualifiedSymbol> for QualifiedSymbol
impl PartialOrd<QualifiedSymbol> for QualifiedSymbol
source§fn partial_cmp(&self, other: &QualifiedSymbol) -> Option<Ordering>
fn partial_cmp(&self, other: &QualifiedSymbol) -> 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 moreimpl Eq for QualifiedSymbol
impl StructuralEq for QualifiedSymbol
impl StructuralPartialEq for QualifiedSymbol
Auto Trait Implementations§
impl RefUnwindSafe for QualifiedSymbol
impl Send for QualifiedSymbol
impl Sync for QualifiedSymbol
impl Unpin for QualifiedSymbol
impl UnwindSafe for QualifiedSymbol
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.