pub struct Source<'a, T> {
pub entry_mode: EntryMode,
pub id: ObjectId,
pub kind: SourceKind,
pub location: &'a BStr,
pub change: &'a T,
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.
change: &'a T
The change that was registered as source.
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, T: PartialEq> PartialEq for Source<'a, T>
impl<'a, T: PartialEq> PartialEq for Source<'a, T>
source§impl<'a, T: PartialOrd> PartialOrd for Source<'a, T>
impl<'a, T: PartialOrd> PartialOrd for Source<'a, T>
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, T> StructuralPartialEq for Source<'a, T>
Auto Trait Implementations§
impl<'a, T> Freeze for Source<'a, T>
impl<'a, T> RefUnwindSafe for Source<'a, T>where
T: RefUnwindSafe,
impl<'a, T> Send for Source<'a, T>where
T: Sync,
impl<'a, T> Sync for Source<'a, T>where
T: Sync,
impl<'a, T> Unpin for Source<'a, T>
impl<'a, T> UnwindSafe for Source<'a, T>where
T: RefUnwindSafe,
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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)