Struct git_status_vars::Head
source · [−]pub struct Head {
pub trail: Vec<Reference>,
pub hash: String,
pub ahead_of_upstream: Option<usize>,
pub behind_upstream: Option<usize>,
pub upstream_error: String,
}
Expand description
The trail of a HEAD
reference.
Fields
trail: Vec<Reference>
hash: String
ahead_of_upstream: Option<usize>
behind_upstream: Option<usize>
upstream_error: String
Trait Implementations
sourceimpl ShellVars for Head
impl ShellVars for Head
fn write_to_shell<W: Write>(&self, out: &ShellWriter<W>)
Auto Trait Implementations
impl RefUnwindSafe for Head
impl Send for Head
impl Sync for Head
impl Unpin for Head
impl UnwindSafe for Head
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more