#[non_exhaustive]pub struct DirtyCounts {
pub staged: u32,
pub unstaged: u32,
pub untracked: u32,
}Expand description
Per-category dirty counts. Populated only in counts mode; indicator-mode scans leave this absent.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.staged: u32§unstaged: u32§untracked: u32Trait Implementations§
Source§impl Clone for DirtyCounts
impl Clone for DirtyCounts
Source§fn clone(&self) -> DirtyCounts
fn clone(&self) -> DirtyCounts
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 DirtyCounts
impl Debug for DirtyCounts
Source§impl Default for DirtyCounts
impl Default for DirtyCounts
Source§fn default() -> DirtyCounts
fn default() -> DirtyCounts
Returns the “default value” for a type. Read more
Source§impl PartialEq for DirtyCounts
impl PartialEq for DirtyCounts
Source§fn eq(&self, other: &DirtyCounts) -> bool
fn eq(&self, other: &DirtyCounts) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for DirtyCounts
impl StructuralPartialEq for DirtyCounts
Auto Trait Implementations§
impl Freeze for DirtyCounts
impl RefUnwindSafe for DirtyCounts
impl Send for DirtyCounts
impl Sync for DirtyCounts
impl Unpin for DirtyCounts
impl UnsafeUnpin for DirtyCounts
impl UnwindSafe for DirtyCounts
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.