pub trait ExtendedHashMap<K, V> {
// Required methods
fn get_disjoint_entries<const N: usize>(
&mut self,
entries: [&K; N],
default: impl FnMut(&K) -> V,
) -> Option<[&mut V; N]>;
fn get_disjoint_two_entries(
&mut self,
left: &K,
right: &K,
left_default: impl FnMut(&K) -> V,
right_default: impl FnMut(&V, &K) -> V,
) -> [Option<&mut V>; 2]
where V: Clone;
}Required Methods§
fn get_disjoint_entries<const N: usize>( &mut self, entries: [&K; N], default: impl FnMut(&K) -> V, ) -> Option<[&mut V; N]>
fn get_disjoint_two_entries(
&mut self,
left: &K,
right: &K,
left_default: impl FnMut(&K) -> V,
right_default: impl FnMut(&V, &K) -> V,
) -> [Option<&mut V>; 2]where
V: Clone,
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.