pub enum MergeOptions {
UpdateOnly,
UpdateAndAdd,
AddOnly,
FullyReplace,
}
Expand description
Used with merge_values()
Variants§
UpdateOnly
Only Update the values that already exist in the hashmap
UpdateAndAdd
Update the values that already exist in the hashmap, and add any new key-value pairs that didn’t exist
AddOnly
Only add key-value pairs that didn’t exist in the hashmap
FullyReplace
Simple replace the existing hashmap with the new hashmap
Auto Trait Implementations§
impl Freeze for MergeOptions
impl RefUnwindSafe for MergeOptions
impl Send for MergeOptions
impl Sync for MergeOptions
impl Unpin for MergeOptions
impl UnwindSafe for MergeOptions
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