Trait in_place::entry::PrevOccupiedFromVacant
source · [−]pub trait PrevOccupiedFromVacant<'c>: VacantEntry<'c> where
Self::Occupied: KeyedOccupiedEntry<'c>,
<Self::Occupied as KeyedOccupiedEntry<'c>>::Key: Ord, {
fn get_prev_occupied(self) -> Option<Self::Occupied>;
}
Expand description
A trait to extend KeyedOccupiedEntry, allowing the user to get the previous occupied entry, according to the ordering on the keys
Required methods
fn get_prev_occupied(self) -> Option<Self::Occupied>
fn get_prev_occupied(self) -> Option<Self::Occupied>
get the previous occupied entry after this one.