pub struct SymbolId(/* private fields */);Expand description
A workspace-local symbol identifier.
Monotonic u64 counter allocated by the librarian (see
symbol-identity-semantics.md § 5.1). SymbolId(42) in workspace A
and SymbolId(42) in workspace B are distinct symbols in
distinct tables — never cross-workspace equal.
§Examples
use mimir_core::SymbolId;
let a = SymbolId::new(42);
assert_eq!(a.as_u64(), 42);Implementations§
Trait Implementations§
Source§impl Ord for SymbolId
impl Ord for SymbolId
Source§impl PartialOrd for SymbolId
impl PartialOrd for SymbolId
impl Copy for SymbolId
impl Eq for SymbolId
impl StructuralPartialEq for SymbolId
Auto Trait Implementations§
impl Freeze for SymbolId
impl RefUnwindSafe for SymbolId
impl Send for SymbolId
impl Sync for SymbolId
impl Unpin for SymbolId
impl UnsafeUnpin for SymbolId
impl UnwindSafe for SymbolId
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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.