pub trait InsertableOccupiedEntry<'c>: OccupiedEntry<'c> {
    fn insert_new(self, value: Self::Value) -> Self;
}
Expand description

A trait to represent inserting a new entry on top of an existing one.

This is only if you can insert without overwriting the last item, but with the same key.

Required methods

insert a new element at this position, shifting the others out of the way.

the old item’s key will no longer equal the new item’s key.

this is most likely to look like an insertion into a LinkedList, where the other items move to have greater indices.

Implementors