Struct OccupiedError
#[non_exhaustive]
pub struct OccupiedError<'a, K: 'a, V: 'a, A: AllocatorClone = Global> { pub entry: OccupiedEntry<'a, K, V, A>, pub key: K, pub value: V }
The error returned by try_insert when the key already exists.
Contains the occupied entry, key, and the value that was not inserted.
Fields
entry: OccupiedEntry<'a, K, V, A>The entry in the map that was already occupied.
key: KThe key which was not inserted, because the entry was already occupied.
value: VThe value which was not inserted, because the entry was already occupied.
Trait Implementations
impl<K: Debug + Ord, V: Debug, A: AllocatorClone> Debug for OccupiedError<'_, K, V, A>
fn fmt(&self, f: &mut Formatter<'_>) -> Result