pub struct NameId(/* private fields */);Expand description
A handle to an interned ExpandedName.
Opaque: compare handles for equality to compare names, which is a
u32 compare rather than two string compares.
Trait Implementations§
impl Copy for NameId
impl Eq for NameId
Source§impl Ord for NameId
impl Ord for NameId
1.21.0 (const: unstable) · 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 PartialOrd for NameId
impl PartialOrd for NameId
impl StructuralPartialEq for NameId
Auto Trait Implementations§
impl Freeze for NameId
impl RefUnwindSafe for NameId
impl Send for NameId
impl Sync for NameId
impl Unpin for NameId
impl UnsafeUnpin for NameId
impl UnwindSafe for NameId
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