pub trait SortedInsert<T: Ord>: SortedInsertByKey<T> {
    fn sorted_insert_asc(&mut self, element: T) -> usize { ... }
fn sorted_insert_desc(&mut self, element: T) -> usize { ... } }

Provided methods

Insert elements to this sorted collection in ascending order and return the inserted index. Use linear search to find the index where a matching element could be inserted.

Insert elements to this sorted collection in descending order and return the inserted index. Use linear search to find the index where a matching element could be inserted.

Implementations on Foreign Types

Implementors