[−][src]Struct glitter_lang::git::Stats
Stats which the interpreter uses to populate the gist expression
Fields
untracked: u16
Number of untracked files which are new to the repository
added_staged: u16
Number of files to be added
modified: u16
Number of modified files which have not yet been staged
modified_staged: u16
Number of staged changes to files
renamed: u16
Number of renamed files
deleted: u16
Number of deleted files
deleted_staged: u16
Number of staged deletions
ahead: u16
Number of commits ahead of the upstream branch
behind: u16
Number of commits behind the upstream branch
conflicts: u16
Number of unresolved conflicts in the repository
stashes: u16
Number of stashes on the current branch
branch: String
The branch name or other stats of the HEAD pointer
remote: String
The of the upstream branch
Methods
impl Stats
[src]
pub fn new(repo: &mut Repository) -> Stats
[src]
Populate stats with the status of the given repository
Trait Implementations
impl Eq for Stats
[src]
impl Default for Stats
[src]
impl Clone for Stats
[src]
impl PartialEq<Stats> for Stats
[src]
impl AddAssign<Stats> for Stats
[src]
fn add_assign(&mut self, rhs: Self)
[src]
impl Debug for Stats
[src]
Auto Trait Implementations
impl Send for Stats
impl Unpin for Stats
impl Sync for Stats
impl UnwindSafe for Stats
impl RefUnwindSafe for Stats
Blanket Implementations
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,