pub struct Merged {
pub text: String,
pub received: usize,
pub sent: usize,
pub kept_both: Vec<(String, String)>,
}Expand description
The outcome of combining this machine’s library with the synced one.
Fields§
§text: StringThe library as it should now be, on this machine and in the repository.
received: usizeChanges taken from other machines.
sent: usizeChanges this machine had made since it last synced.
kept_both: Vec<(String, String)>Entries that were changed on both sides. The first id holds the version that reached the repository first, and the second holds this machine’s version, kept under a new id rather than lost.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Merged
impl RefUnwindSafe for Merged
impl Send for Merged
impl Sync for Merged
impl Unpin for Merged
impl UnsafeUnpin for Merged
impl UnwindSafe for Merged
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