pub enum DeletePolicy {
DeleteWins,
UpdateWins,
}Expand description
Policy for delete vs update conflicts.
Determines what happens when one branch deletes a key while another branch modifies it.
Variants§
DeleteWins
Deletes win over updates.
If one branch deletes a key and another modifies it, the key will be absent from the merged result.
UpdateWins
Updates win over deletes.
If one branch deletes a key and another modifies it, the key will be present with the updated value.
Trait Implementations§
Source§impl Clone for DeletePolicy
impl Clone for DeletePolicy
Source§fn clone(&self) -> DeletePolicy
fn clone(&self) -> DeletePolicy
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DeletePolicy
impl Debug for DeletePolicy
Source§impl Default for DeletePolicy
impl Default for DeletePolicy
Source§fn default() -> DeletePolicy
fn default() -> DeletePolicy
Returns the “default value” for a type. Read more
impl Eq for DeletePolicy
Source§impl PartialEq for DeletePolicy
impl PartialEq for DeletePolicy
impl StructuralPartialEq for DeletePolicy
Auto Trait Implementations§
impl Freeze for DeletePolicy
impl RefUnwindSafe for DeletePolicy
impl Send for DeletePolicy
impl Sync for DeletePolicy
impl Unpin for DeletePolicy
impl UnsafeUnpin for DeletePolicy
impl UnwindSafe for DeletePolicy
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<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