pub trait CollectionEntry: CollectionMap {
type Entry<'a>: MapEntry<'a, Key = Self::Key, Value = Self::Value>
where Self: 'a;
// Required method
fn entry(&mut self, key: Self::Key) -> Self::Entry<'_>;
}Expand description
Trait implemented by maps that expose an in-place entry API.
Required Associated Types§
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".
Implementations on Foreign Types§
Source§impl<K: Eq + Hash, V, S: BuildHasher, A: Allocator> CollectionEntry for HashMap<K, V, S, A>
Available on crate feature hashbrown only.
impl<K: Eq + Hash, V, S: BuildHasher, A: Allocator> CollectionEntry for HashMap<K, V, S, A>
Available on crate feature
hashbrown only.Source§impl<K: Eq + Hash, V, S: BuildHasher, const N: usize> CollectionEntry for IndexMap<K, V, S, N>
Available on crate feature heapless only.
impl<K: Eq + Hash, V, S: BuildHasher, const N: usize> CollectionEntry for IndexMap<K, V, S, N>
Available on crate feature
heapless only.Source§impl<K: Eq + Hash, V, S: BuildHasher> CollectionEntry for HashMap<K, V, S>
Available on crate feature std only.
impl<K: Eq + Hash, V, S: BuildHasher> CollectionEntry for HashMap<K, V, S>
Available on crate feature
std only.Source§impl<K: Eq + Hash, V, S: BuildHasher> CollectionEntry for IndexMap<K, V, S>
Available on crate feature indexmap only.
impl<K: Eq + Hash, V, S: BuildHasher> CollectionEntry for IndexMap<K, V, S>
Available on crate feature
indexmap only.Source§impl<K: Ord, V> CollectionEntry for BTreeMap<K, V>
Available on crate feature alloc only.
impl<K: Ord, V> CollectionEntry for BTreeMap<K, V>
Available on crate feature
alloc only.