pub enum Verdict {
Agrees,
Differs {
theirs: String,
yours: String,
},
NothingToCompare,
}Expand description
What a source’s value amounts to, next to the tag it can be compared with.
Derived on read, never stored. A stored “agrees” goes stale the moment the file is re-tagged, and the catalog would then hold a claim it has stopped being able to justify. What is stored is the answer itself, whole; this is computed from it. That is also what makes “does my tag still match?” an offline question.
Variants§
Agrees
The source and the tag say the same thing.
Differs
They do not, and both are named so the reader can judge.
NothingToCompare
There is no tag to compare against, so the source adds rather than contradicts.
Trait Implementations§
impl Eq for Verdict
impl StructuralPartialEq for Verdict
Auto Trait Implementations§
impl Freeze for Verdict
impl RefUnwindSafe for Verdict
impl Send for Verdict
impl Sync for Verdict
impl Unpin for Verdict
impl UnwindSafe for Verdict
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