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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)