Struct sway_types::ident::IdentUnique
source · pub struct IdentUnique(_);
Expand description
An IdentUnique is an identifier with a corresponding span
from which it was derived.
Its hash and equality implementation takes the full span into account, meaning that identifiers
are considered unique if they originate from different files.
Trait Implementations§
source§impl Clone for IdentUnique
impl Clone for IdentUnique
source§fn clone(&self) -> IdentUnique
fn clone(&self) -> IdentUnique
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 IdentUnique
impl Debug for IdentUnique
source§impl From<&BaseIdent> for IdentUnique
impl From<&BaseIdent> for IdentUnique
source§impl From<&IdentUnique> for Ident
impl From<&IdentUnique> for Ident
source§fn from(item: &IdentUnique) -> Self
fn from(item: &IdentUnique) -> Self
Converts to this type from the input type.
source§impl From<BaseIdent> for IdentUnique
impl From<BaseIdent> for IdentUnique
source§impl Hash for IdentUnique
impl Hash for IdentUnique
source§impl Ord for IdentUnique
impl Ord for IdentUnique
source§impl PartialEq<IdentUnique> for IdentUnique
impl PartialEq<IdentUnique> for IdentUnique
source§impl PartialOrd<IdentUnique> for IdentUnique
impl PartialOrd<IdentUnique> for IdentUnique
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 IdentUnique
Auto Trait Implementations§
impl RefUnwindSafe for IdentUnique
impl Send for IdentUnique
impl Sync for IdentUnique
impl Unpin for IdentUnique
impl UnwindSafe for IdentUnique
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§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,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more