pub enum MergeResult<T> {
KeepParent,
ReplaceOrInsert(T),
Remove,
}Expand description
Variants§
KeepParent
Keep the existing parent value as-is, whether it exists or not.
ReplaceOrInsert(T)
Replace the parent value or insert this value if it does not exist.
Remove
Remove the value from the parent context entirely.
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for MergeResult<T>where
T: Freeze,
impl<T> RefUnwindSafe for MergeResult<T>where
T: RefUnwindSafe,
impl<T> Send for MergeResult<T>where
T: Send,
impl<T> Sync for MergeResult<T>where
T: Sync,
impl<T> Unpin for MergeResult<T>where
T: Unpin,
impl<T> UnsafeUnpin for MergeResult<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for MergeResult<T>where
T: UnwindSafe,
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