pub struct SymbolKey(/* private fields */);Expand description
A declaration handle that is independent of byte offsets.
The encoded form is symbol:<kind>:<file-byte-length>:<file>#<qualified>.
The length prefix keeps parsing unambiguous even when a path contains #.
A key is deliberately not a unique id: overloads or duplicate declarations
with the same kind and qualified path share it, and callers must handle the
resulting candidate set rather than guessing a binding.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for SymbolKey
impl<'de> Deserialize<'de> for SymbolKey
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for SymbolKey
Source§impl Ord for SymbolKey
impl Ord for SymbolKey
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 SymbolKey
impl PartialOrd for SymbolKey
impl StructuralPartialEq for SymbolKey
Auto Trait Implementations§
impl Freeze for SymbolKey
impl RefUnwindSafe for SymbolKey
impl Send for SymbolKey
impl Sync for SymbolKey
impl Unpin for SymbolKey
impl UnsafeUnpin for SymbolKey
impl UnwindSafe for SymbolKey
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