pub struct UniqueIdent(/* private fields */);Expand description
An identifier that’s unique within its UniqueIdents scope.
Only a scope can construct these, ensuring that identifiers won’t collide
within that scope. Pass a UniqueIdent to a CodegenIdentUsage variant
to emit it as an Ident token.
Trait Implementations§
Source§impl Debug for UniqueIdent
impl Debug for UniqueIdent
Source§impl Deref for UniqueIdent
impl Deref for UniqueIdent
Source§impl Hash for UniqueIdent
impl Hash for UniqueIdent
Source§impl Ord for UniqueIdent
impl Ord for UniqueIdent
Source§impl PartialEq for UniqueIdent
impl PartialEq for UniqueIdent
Source§fn eq(&self, other: &UniqueIdent) -> bool
fn eq(&self, other: &UniqueIdent) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for UniqueIdent
impl PartialOrd for UniqueIdent
impl Eq for UniqueIdent
impl StructuralPartialEq for UniqueIdent
Auto Trait Implementations§
impl Freeze for UniqueIdent
impl RefUnwindSafe for UniqueIdent
impl Send for UniqueIdent
impl !Sized for UniqueIdent
impl Sync for UniqueIdent
impl Unpin for UniqueIdent
impl UnsafeUnpin for UniqueIdent
impl UnwindSafe for UniqueIdent
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
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.