Struct scapegoat::map_types::OccupiedError
source · [−]pub struct OccupiedError<'a, K: 'a + Ord + Default, V: 'a + Default, const N: usize> {
pub entry: OccupiedEntry<'a, K, V, N>,
pub value: V,
}
Expand description
The error returned by try_insert_std
when the key already exists.
Contains the occupied entry, and the value that was not inserted.
Fields
entry: OccupiedEntry<'a, K, V, N>
The entry in the map that was already occupied.
value: V
The value which was not inserted, because the entry was already occupied.