pub struct Reference<'a> {
pub name: &'a FullNameRef,
pub target: &'a BStr,
pub object: Option<&'a BStr>,
}
Expand description
A reference as parsed from the packed-refs
file
Fields§
§name: &'a FullNameRef
The validated full name of the reference.
target: &'a BStr
The target object id of the reference, hex encoded.
object: Option<&'a BStr>
The fully peeled object id, hex encoded, that the ref is ultimately pointing to i.e. when all indirections are removed.
Implementations§
Trait Implementations§
source§impl<'a> PartialEq for Reference<'a>
impl<'a> PartialEq for Reference<'a>
impl<'a> Eq for Reference<'a>
impl<'a> StructuralEq for Reference<'a>
impl<'a> StructuralPartialEq for Reference<'a>
Auto Trait Implementations§
impl<'a> RefUnwindSafe for Reference<'a>
impl<'a> Send for Reference<'a>
impl<'a> Sync for Reference<'a>
impl<'a> Unpin for Reference<'a>
impl<'a> UnwindSafe for Reference<'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