Enum git_repository::revision::spec::parse::ObjectKindHint
source · pub enum ObjectKindHint {
Commit,
Committish,
Tree,
Treeish,
Blob,
}
Expand description
A hint to know which object kind to prefer if multiple objects match a prefix.
This disambiguation mechanism is applied only if there is no disambiguation hints in the spec itself.
Variants
Commit
Pick objects that are commits themselves.
Committish
Pick objects that can be peeled into a commit, i.e. commits themselves or tags which are peeled until a commit is found.
Tree
Pick objects that are trees themselves.
Treeish
Pick objects that can be peeled into a tree, i.e. trees themselves or tags which are peeled until a tree is found or commits whose tree is chosen.
Blob
Pick objects that are blobs.
Trait Implementations
sourceimpl Clone for ObjectKindHint
impl Clone for ObjectKindHint
sourcefn clone(&self) -> ObjectKindHint
fn clone(&self) -> ObjectKindHint
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for ObjectKindHint
impl Debug for ObjectKindHint
sourceimpl PartialEq<ObjectKindHint> for ObjectKindHint
impl PartialEq<ObjectKindHint> for ObjectKindHint
sourcefn eq(&self, other: &ObjectKindHint) -> bool
fn eq(&self, other: &ObjectKindHint) -> bool
impl Copy for ObjectKindHint
impl Eq for ObjectKindHint
impl StructuralEq for ObjectKindHint
impl StructuralPartialEq for ObjectKindHint
Auto Trait Implementations
impl RefUnwindSafe for ObjectKindHint
impl Send for ObjectKindHint
impl Sync for ObjectKindHint
impl Unpin for ObjectKindHint
impl UnwindSafe for ObjectKindHint
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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