pub struct Reference<'a> {
pub name: FullNameRef<'a>,
pub target: &'a BStr,
pub object: Option<&'a BStr>,
}
Expand description
A reference as parsed from the packed-refs
file
The validated full name of the reference.
The target object id of the reference, hex encoded.
The fully peeled object id, hex encoded, that the ref is ultimately pointing to
i.e. when all indirections are removed.
Decode the target as object
Decode the object this reference is ultimately pointing to. Note that this is
the target()
if this is not a fully peeled reference like a tag.
Formats the value using the given formatter. Read more
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
impl<T> Any for T where
T: 'static + ?Sized,
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
impl<T, U> Into<U> for T where
U: From<T>,
The type returned in the event of a conversion error.
The type returned in the event of a conversion error.