pub enum StalenessStatus {
Fresh,
SourceChanged {
old_hash: ContentHash,
new_hash: ContentHash,
},
FileMissing,
SymbolMissing {
symbol: String,
},
Unknown,
}Expand description
Result of checking an annotation’s freshness against current code.
Variants§
Fresh
Source hash matches – annotation is current.
SourceChanged
Source at the annotated scope has changed since the annotation was written.
FileMissing
The file referenced by the annotation no longer exists in the tree.
SymbolMissing
Symbol referenced by annotation no longer exists in the file.
Unknown
No provenance data stored – staleness cannot be determined.
Trait Implementations§
Source§impl Clone for StalenessStatus
impl Clone for StalenessStatus
Source§fn clone(&self) -> StalenessStatus
fn clone(&self) -> StalenessStatus
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for StalenessStatus
impl Debug for StalenessStatus
impl Eq for StalenessStatus
Source§impl PartialEq for StalenessStatus
impl PartialEq for StalenessStatus
Source§fn eq(&self, other: &StalenessStatus) -> bool
fn eq(&self, other: &StalenessStatus) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for StalenessStatus
Auto Trait Implementations§
impl Freeze for StalenessStatus
impl RefUnwindSafe for StalenessStatus
impl Send for StalenessStatus
impl Sync for StalenessStatus
impl Unpin for StalenessStatus
impl UnsafeUnpin for StalenessStatus
impl UnwindSafe for StalenessStatus
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