#[repr(u8)]pub enum SetMode {
Set = 3,
Replace = 1,
Add = 2,
}Expand description
Dictionary insertion mode.
Variants§
Set = 3
Sets the value associated with the key in the dictionary.
Replace = 1
Sets the value associated with the key in the dictionary only if the key was already present in it.
Add = 2
Sets the value associated with key in dictionary, but only if it is not already present.
Implementations§
Trait Implementations§
impl Copy for SetMode
impl Eq for SetMode
impl StructuralPartialEq for SetMode
Auto Trait Implementations§
impl Freeze for SetMode
impl RefUnwindSafe for SetMode
impl Send for SetMode
impl Sync for SetMode
impl Unpin for SetMode
impl UnwindSafe for SetMode
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compares
self to key and returns true if they are equal.