pub enum RawRefLookup {
Exists,
NotFound,
IsDirectory,
}Expand description
Outcome of a single storage-level ref lookup (Git refs_read_raw_ref style).
This checks whether a ref name exists in the ref store without applying DWIM rules. A symbolic ref is considered to exist if its ref file (or reftable record) is present, even when the target is missing.
Variants§
Exists
A loose ref file, packed ref line, or reftable record exists for this name.
NotFound
No ref is recorded under this exact name.
IsDirectory
A path component exists as a directory where a ref file was expected (e.g. refs/heads).
Trait Implementations§
Source§impl Clone for RawRefLookup
impl Clone for RawRefLookup
Source§fn clone(&self) -> RawRefLookup
fn clone(&self) -> RawRefLookup
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RawRefLookup
impl Debug for RawRefLookup
Source§impl PartialEq for RawRefLookup
impl PartialEq for RawRefLookup
impl Copy for RawRefLookup
impl Eq for RawRefLookup
impl StructuralPartialEq for RawRefLookup
Auto Trait Implementations§
impl Freeze for RawRefLookup
impl RefUnwindSafe for RawRefLookup
impl Send for RawRefLookup
impl Sync for RawRefLookup
impl Unpin for RawRefLookup
impl UnsafeUnpin for RawRefLookup
impl UnwindSafe for RawRefLookup
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