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> StructuralEq for Outcome<'a>
impl<'a> StructuralPartialEq for Outcome<'a>
Auto Trait Implementations§
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
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more