Expand description
Define where a tag object should be peeled to.
Variants
ObjectKind(Kind)
An object of the given kind.
ExistingObject
Ensure the object at hand exists, without imposing any restrictions to its type.
RecursiveTagObject
Follow an annotated tag object recursively until an object is found.
Path(&'a BStr)
The path to drill into as seen relative to the current tree-ish.
Note that the path can be relative, and ./
and ../
prefixes are seen as relative to the current
working directory.
The path may be empty, which makes it refer to the tree at the current revision, similar to ^{tree}
.
Note that paths like ../
are valid and refer to a tree as seen relative to the current working directory.
Trait Implementations
sourceimpl<'a> Ord for PeelTo<'a>
impl<'a> Ord for PeelTo<'a>
sourceimpl<'a> PartialOrd<PeelTo<'a>> for PeelTo<'a>
impl<'a> PartialOrd<PeelTo<'a>> for PeelTo<'a>
sourcefn partial_cmp(&self, other: &PeelTo<'a>) -> Option<Ordering>
fn partial_cmp(&self, other: &PeelTo<'a>) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
impl<'a> Copy for PeelTo<'a>
impl<'a> Eq for PeelTo<'a>
impl<'a> StructuralEq for PeelTo<'a>
impl<'a> StructuralPartialEq for PeelTo<'a>
Auto Trait Implementations
impl<'a> RefUnwindSafe for PeelTo<'a>
impl<'a> Send for PeelTo<'a>
impl<'a> Sync for PeelTo<'a>
impl<'a> Unpin for PeelTo<'a>
impl<'a> UnwindSafe for PeelTo<'a>
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