pub struct MergeScope {
pub base: Tree,
pub ours: Tree,
pub theirs: Tree,
pub work: Tree,
pub subjects: Vec<String>,
pub scope: String,
}Expand description
Everything the working-tree check needs: the three merge stages, the bytes on disk, the files the merge actually had to decide, and a sentence naming what was compared.
Fields§
§base: Tree§ours: Tree§theirs: Tree§work: TreeThe working tree, as it is right now.
subjects: Vec<String>Files BOTH sides changed, plus anything git still has unmerged.
scope: StringAuto Trait Implementations§
impl Freeze for MergeScope
impl RefUnwindSafe for MergeScope
impl Send for MergeScope
impl Sync for MergeScope
impl Unpin for MergeScope
impl UnsafeUnpin for MergeScope
impl UnwindSafe for MergeScope
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more