pub trait GetEntry<'a>: GetMut {
type Occupied: OccupiedEntry<'a, Self>;
type Vacant: VacantEntry<'a, Self>;
// Required method
fn entry(&'a mut self, key: Self::Key) -> Entry<'a, Self>;
}
Expand description
A trait for getting an entry at a given key.
Required Associated Types§
Sourcetype Occupied: OccupiedEntry<'a, Self>
type Occupied: OccupiedEntry<'a, Self>
The type of an occupied entry.
Sourcetype Vacant: VacantEntry<'a, Self>
type Vacant: VacantEntry<'a, Self>
The type of a vacant entry.
Required Methods§
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.