pub struct NeverDrop {
pub mode: MergeMode,
pub clashed_keys: Vec<String>,
}Fields§
§mode: MergeMode§clashed_keys: Vec<String>Implementations§
Trait Implementations§
Source§impl MutableFilter for NeverDrop
impl MutableFilter for NeverDrop
Source§fn resolve_conflict<'a, K: Display, V: Clone>(
&mut self,
keys: &[K],
old: &'a V,
new: &'a V,
_self_of_whole_value: &mut V,
) -> Option<Cow<'a, V>>
fn resolve_conflict<'a, K: Display, V: Clone>( &mut self, keys: &[K], old: &'a V, new: &'a V, _self_of_whole_value: &mut V, ) -> Option<Cow<'a, V>>
Called during
Delegate::modified(...), returns None to cause the Value at the keys to
be removed, or any Value to be set in its place. Read moreSource§fn resolve_removal<'a, K: Display, V: Clone>(
&mut self,
_keys: &[K],
removed: &'a V,
_self_of_whole_value: &mut V,
) -> Option<Cow<'a, V>>
fn resolve_removal<'a, K: Display, V: Clone>( &mut self, _keys: &[K], removed: &'a V, _self_of_whole_value: &mut V, ) -> Option<Cow<'a, V>>
Called during
Delegate::removed(...), returns None to allow the Value at the keys path
to be removed, or any Value to be set in its place instead. Read moreAuto Trait Implementations§
impl Freeze for NeverDrop
impl RefUnwindSafe for NeverDrop
impl Send for NeverDrop
impl Sync for NeverDrop
impl Unpin for NeverDrop
impl UnwindSafe for NeverDrop
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