pub struct Sides {
pub ours: &'static str,
pub theirs: &'static str,
pub ours_mid: &'static str,
pub theirs_mid: &'static str,
}Expand description
What a document calls the two sides of the comparison it describes.
This is the only thing that legitimately differs between the two producers
of a class=CONFLICT finding: weave-mcp describes a merge, whose sides are
ours and theirs; weave patch describes a patch landing on a target, whose
sides are the target and the patch. Everything else — which kinds exist,
what each one means, what to do about it — is one fact, and used to be
written down twice in prose that had already drifted apart in wording.
Passing the vocabulary in is what lets there be one owner: the audience is a parameter, not a reason to fork the mapping.
Fields§
§ours: &'static strSentence-initial form — “Ours”, “The target”.
theirs: &'static str§ours_mid: &'static strMid-sentence form — “ours”, “the target”.
theirs_mid: &'static strImplementations§
Trait Implementations§
impl Copy for Sides
impl Eq for Sides
impl StructuralPartialEq for Sides
Auto Trait Implementations§
impl Freeze for Sides
impl RefUnwindSafe for Sides
impl Send for Sides
impl Sync for Sides
impl Unpin for Sides
impl UnsafeUnpin for Sides
impl UnwindSafe for Sides
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§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.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