#[non_exhaustive]pub enum DirtyState {
Clean,
Dirty(Option<DirtyCounts>),
}Expand description
Dirty-state result.
Clean— no tracked modifications and no untracked files.Dirty(None)— indicator mode: scan short-circuited on the first dirty entry, so counts were not collected.Dirty(Some(counts))— full-scan counts mode.
The two Dirty forms are distinct plugin-facing states so
counts-mode renderers can tell “counts not yet computed” apart
from “zero of this category.”
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Clean
Dirty(Option<DirtyCounts>)
Implementations§
Trait Implementations§
Source§impl Clone for DirtyState
impl Clone for DirtyState
Source§fn clone(&self) -> DirtyState
fn clone(&self) -> DirtyState
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 DirtyState
impl Debug for DirtyState
Source§impl Default for DirtyState
impl Default for DirtyState
Source§fn default() -> DirtyState
fn default() -> DirtyState
Returns the “default value” for a type. Read more
Source§impl PartialEq for DirtyState
impl PartialEq for DirtyState
Source§fn eq(&self, other: &DirtyState) -> bool
fn eq(&self, other: &DirtyState) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for DirtyState
impl StructuralPartialEq for DirtyState
Auto Trait Implementations§
impl Freeze for DirtyState
impl RefUnwindSafe for DirtyState
impl Send for DirtyState
impl Sync for DirtyState
impl Unpin for DirtyState
impl UnsafeUnpin for DirtyState
impl UnwindSafe for DirtyState
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> 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.