Struct git_revision::describe::Outcome  
source · [−]pub struct Outcome<'name> {
    pub name: Option<Cow<'name, BStr>>,
    pub id: ObjectId,
    pub depth: u32,
    pub name_by_oid: HashedMap<ObjectId, Cow<'name, BStr>>,
    pub commits_seen: u32,
}Expand description
The positive result produced by describe().
Fields
name: Option<Cow<'name, BStr>>The name of the tag or branch that is closest to the commit id.
If None, no name was found but it was requested to provide the id itself as fallback.
id: ObjectIdThe input commit object id that we describe.
depth: u32The number of commits that are between the tag or branch with name and id.
These commits are all in the future of the named tag or branch.
name_by_oid: HashedMap<ObjectId, Cow<'name, BStr>>The mapping between object ids and their names initially provided by the describe call.
commits_seen: u32The amount of commits we traversed.
Implementations
Trait Implementations
Auto Trait Implementations
impl<'name> RefUnwindSafe for Outcome<'name>
impl<'name> Send for Outcome<'name>
impl<'name> Sync for Outcome<'name>
impl<'name> Unpin for Outcome<'name>
impl<'name> UnwindSafe for Outcome<'name>
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