Trait autopush_common::util::InsertOpt
source · pub trait InsertOpt<K: Eq + Hash, V> {
// Required method
fn insert_opt(&mut self, key: impl Into<K>, value: Option<impl Into<V>>);
}
Required Methods§
sourcefn insert_opt(&mut self, key: impl Into<K>, value: Option<impl Into<V>>)
fn insert_opt(&mut self, key: impl Into<K>, value: Option<impl Into<V>>)
Insert an item only if it exists
Object Safety§
This trait is not object safe.