Expand description
Define where a tag object should be peeled to.
Variants
ObjectKind(Kind)
An object of the given kind.
ValidObject
Ensure the object at hand exists and is valid (actually without peeling it), without imposing any restrictions to its type. The object needs to be looked up to assure that it is valid, but it doesn’t need to be decoded.
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>
1.21.0 · sourcefn max(self, other: Self) -> Self
fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
1.21.0 · sourcefn min(self, other: Self) -> Self
fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Self where
Self: PartialOrd<Self>,
fn clamp(self, min: Self, max: Self) -> Self where
Self: PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl<'a> PartialEq<PeelTo<'a>> for PeelTo<'a>
impl<'a> PartialEq<PeelTo<'a>> 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