pub struct ResourceRef<'a> {
pub data: Data<'a>,
pub rela_path: &'a BStr,
pub id: &'a oid,
}
Expand description
A blob or executable ready to be merged in one way or another.
Fields§
§data: Data<'a>
The data itself, suitable for merging, and if the object or worktree item is present at all.
rela_path: &'a BStr
The location of the resource, relative to the working tree.
id: &'a oid
The id of the content as it would be stored in git
, or null
if the content doesn’t exist anymore at
rela_path
or if it was never computed. This can happen with content read from the worktree, which
after its ‘to-git’ conversion never had its hash computed.
Trait Implementations§
Source§impl<'a> Clone for ResourceRef<'a>
impl<'a> Clone for ResourceRef<'a>
Source§fn clone(&self) -> ResourceRef<'a>
fn clone(&self) -> ResourceRef<'a>
Returns a copy 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<'a> Hash for ResourceRef<'a>
impl<'a> Hash for ResourceRef<'a>
Source§impl<'a> Ord for ResourceRef<'a>
impl<'a> Ord for ResourceRef<'a>
Source§fn cmp(&self, other: &ResourceRef<'a>) -> Ordering
fn cmp(&self, other: &ResourceRef<'a>) -> Ordering
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> PartialEq for ResourceRef<'a>
impl<'a> PartialEq for ResourceRef<'a>
Source§impl<'a> PartialOrd for ResourceRef<'a>
impl<'a> PartialOrd for ResourceRef<'a>
impl<'a> Copy for ResourceRef<'a>
impl<'a> Eq for ResourceRef<'a>
impl<'a> StructuralPartialEq for ResourceRef<'a>
Auto Trait Implementations§
impl<'a> Freeze for ResourceRef<'a>
impl<'a> RefUnwindSafe for ResourceRef<'a>
impl<'a> Send for ResourceRef<'a>
impl<'a> Sync for ResourceRef<'a>
impl<'a> Unpin for ResourceRef<'a>
impl<'a> UnwindSafe for ResourceRef<'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