pub struct StableFileKey(/* private fields */);Expand description
Persistable file identity for cache entries that need to survive FileId
churn across runs.
FileId remains a dense in-memory index. This key is path-derived, root
relative where possible, and uses / separators so graph-cache metadata can
compare file identity without relying on platform path display quirks.
Implementations§
Source§impl StableFileKey
impl StableFileKey
Sourcepub fn from_root_relative(root: &Path, path: &Path) -> Self
pub fn from_root_relative(root: &Path, path: &Path) -> Self
Build a stable key from an absolute path and the analysis root.
Sourcepub fn from_relative(path: &Path) -> Self
pub fn from_relative(path: &Path) -> Self
Build a stable key from an already-root-relative path.
Trait Implementations§
Source§impl Clone for StableFileKey
impl Clone for StableFileKey
Source§impl Debug for StableFileKey
impl Debug for StableFileKey
Source§impl<'de> Deserialize<'de> for StableFileKey
impl<'de> Deserialize<'de> for StableFileKey
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 StableFileKey
Source§impl Hash for StableFileKey
impl Hash for StableFileKey
Source§impl Ord for StableFileKey
impl Ord for StableFileKey
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
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for StableFileKey
impl PartialEq for StableFileKey
Source§impl PartialOrd for StableFileKey
impl PartialOrd for StableFileKey
Source§impl Serialize for StableFileKey
impl Serialize for StableFileKey
impl StructuralPartialEq for StableFileKey
Auto Trait Implementations§
impl Freeze for StableFileKey
impl RefUnwindSafe for StableFileKey
impl Send for StableFileKey
impl Sync for StableFileKey
impl Unpin for StableFileKey
impl UnsafeUnpin for StableFileKey
impl UnwindSafe for StableFileKey
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
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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.