pub struct Counts {
pub staged: u32,
pub unstaged: u32,
pub conflicted: u32,
pub untracked: u32,
}Expand description
The counts shown in the status header.
Crosses the boundary as a flat [staged, unstaged, conflicted, untracked]
rather than as four separate calls: one array copy beats four calls, and the
caller reads it without allocating an object per count.
Fields§
§staged: u32§unstaged: u32§conflicted: u32§untracked: u32Trait Implementations§
Auto Trait Implementations§
impl Freeze for Counts
impl RefUnwindSafe for Counts
impl Send for Counts
impl Sync for Counts
impl Unpin for Counts
impl UnsafeUnpin for Counts
impl UnwindSafe for Counts
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