pub struct GitStatusSummary { /* private fields */ }
Expand description
Summary of git repository status
Implementations§
Source§impl GitStatusSummary
impl GitStatusSummary
pub fn is_clean(&self) -> bool
pub fn has_staged_changes(&self) -> bool
pub fn has_unstaged_changes(&self) -> bool
pub fn has_untracked_files(&self) -> bool
pub fn staged_count(&self) -> usize
pub fn unstaged_count(&self) -> usize
pub fn untracked_count(&self) -> usize
Trait Implementations§
Source§impl Clone for GitStatusSummary
impl Clone for GitStatusSummary
Source§fn clone(&self) -> GitStatusSummary
fn clone(&self) -> GitStatusSummary
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for GitStatusSummary
impl RefUnwindSafe for GitStatusSummary
impl Send for GitStatusSummary
impl Sync for GitStatusSummary
impl Unpin for GitStatusSummary
impl UnwindSafe for GitStatusSummary
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<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more