pub struct Source<'a> {
pub entry_mode: EntryMode,
pub id: ObjectId,
pub kind: SourceKind,
pub location: &'a BStr,
pub diff: Option<DiffLineStats>,
}
Available on crate feature
blob
only.Expand description
The source of a rewrite, rename or copy.
Fields§
§entry_mode: EntryMode
The kind of entry.
id: ObjectId
The hash of the state of the source as seen in the object database.
kind: SourceKind
Further specify what kind of source this is.
location: &'a BStr
The repository-relative location of this entry.
diff: Option<DiffLineStats>
If this is a rewrite, indicate how many lines would need to change to turn this source into the destination.
Trait Implementations§
source§impl<'a> PartialEq for Source<'a>
impl<'a> PartialEq for Source<'a>
source§impl<'a> PartialOrd for Source<'a>
impl<'a> PartialOrd for Source<'a>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl<'a> StructuralPartialEq for Source<'a>
Auto Trait Implementations§
impl<'a> RefUnwindSafe for Source<'a>
impl<'a> Send for Source<'a>
impl<'a> Sync for Source<'a>
impl<'a> Unpin for Source<'a>
impl<'a> UnwindSafe for Source<'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