pub struct Outcome<'a> {
pub operation: Operation<'a>,
pub old: Resource<'a>,
pub new: Resource<'a>,
}
Available on crate feature
blob
only.Expand description
The outcome of a prepare_diff
operation.
Fields§
§operation: Operation<'a>
The kind of diff that was actually performed. This may include skipping the internal diff as well.
old: Resource<'a>
The old or source of the diff operation.
new: Resource<'a>
The new or destination of the diff operation.
Implementations§
source§impl<'a> Outcome<'a>
impl<'a> Outcome<'a>
sourcepub fn interned_input(&self) -> InternedInput<&'a [u8]>
pub fn interned_input(&self) -> InternedInput<&'a [u8]>
Produce an instance of an interner which git
would use to perform diffs.
Trait Implementations§
source§impl<'a> PartialEq for Outcome<'a>
impl<'a> PartialEq for Outcome<'a>
impl<'a> Copy for Outcome<'a>
impl<'a> Eq for Outcome<'a>
impl<'a> StructuralPartialEq for Outcome<'a>
Auto Trait Implementations§
impl<'a> Freeze for Outcome<'a>
impl<'a> RefUnwindSafe for Outcome<'a>
impl<'a> Send for Outcome<'a>
impl<'a> Sync for Outcome<'a>
impl<'a> Unpin for Outcome<'a>
impl<'a> UnwindSafe for Outcome<'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§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
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
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
)