Enum move_lang::parser::ast::LeadingNameAccess_
source · pub enum LeadingNameAccess_ {
AnonymousAddress(AddressBytes),
Name(Name),
}
Expand description
Specifies a name at the beginning of an access chain. Could be
- A module name
- A named address
- An address numerical value
Variants§
AnonymousAddress(AddressBytes)
Name(Name)
Implementations§
Trait Implementations§
source§impl Clone for LeadingNameAccess_
impl Clone for LeadingNameAccess_
source§fn clone(&self) -> LeadingNameAccess_
fn clone(&self) -> LeadingNameAccess_
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 LeadingNameAccess_
impl Debug for LeadingNameAccess_
source§impl Display for LeadingNameAccess_
impl Display for LeadingNameAccess_
source§impl Hash for LeadingNameAccess_
impl Hash for LeadingNameAccess_
source§impl Ord for LeadingNameAccess_
impl Ord for LeadingNameAccess_
source§fn cmp(&self, other: &LeadingNameAccess_) -> Ordering
fn cmp(&self, other: &LeadingNameAccess_) -> 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<LeadingNameAccess_> for LeadingNameAccess_
impl PartialEq<LeadingNameAccess_> for LeadingNameAccess_
source§fn eq(&self, other: &LeadingNameAccess_) -> bool
fn eq(&self, other: &LeadingNameAccess_) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<LeadingNameAccess_> for LeadingNameAccess_
impl PartialOrd<LeadingNameAccess_> for LeadingNameAccess_
source§fn partial_cmp(&self, other: &LeadingNameAccess_) -> Option<Ordering>
fn partial_cmp(&self, other: &LeadingNameAccess_) -> 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 Copy for LeadingNameAccess_
impl Eq for LeadingNameAccess_
impl StructuralEq for LeadingNameAccess_
impl StructuralPartialEq for LeadingNameAccess_
Auto Trait Implementations§
impl RefUnwindSafe for LeadingNameAccess_
impl Send for LeadingNameAccess_
impl Sync for LeadingNameAccess_
impl Unpin for LeadingNameAccess_
impl UnwindSafe for LeadingNameAccess_
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.