pub enum PeelTo<'a> {
ObjectKind(Kind),
ValidObject,
RecursiveTagObject,
Path(&'a BStr),
}
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§
Source§impl<'a> Ord for PeelTo<'a>
impl<'a> Ord for PeelTo<'a>
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl<'a> PartialOrd for PeelTo<'a>
impl<'a> PartialOrd for PeelTo<'a>
impl<'a> Copy for PeelTo<'a>
impl<'a> Eq for PeelTo<'a>
impl<'a> StructuralPartialEq for PeelTo<'a>
Auto Trait Implementations§
impl<'a> Freeze for PeelTo<'a>
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§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more