pub enum SourceState {
NotGit,
Git {
head: String,
branch: Option<String>,
uncommitted: usize,
default_ref: Option<String>,
behind_ahead: Option<(usize, usize)>,
},
Unknown(String),
}Variants§
NotGit
The path is not inside a git work tree.
Git
Fields
Unknown(String)
A git command failed unexpectedly: the command and its stderr.
Trait Implementations§
Source§impl Clone for SourceState
impl Clone for SourceState
Source§impl Debug for SourceState
impl Debug for SourceState
impl Eq for SourceState
Source§impl PartialEq for SourceState
impl PartialEq for SourceState
impl StructuralPartialEq for SourceState
Auto Trait Implementations§
impl Forget for SourceState
impl Freeze for SourceState
impl Move for SourceState
impl RefUnwindSafe for SourceState
impl Send for SourceStatewhere
RawVecInner: Send,
impl Sync for SourceStatewhere
RawVecInner: Sync,
impl Unpin for SourceState
impl UnsafeUnpin for SourceState
impl UnwindSafe for SourceStatewhere
RawVecInner: UnwindSafe,
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.