Trait sorted_insert::SortedInsertBy[][src]

pub trait SortedInsertBy<T>: SortedInsertBasic<T> {
    fn sorted_insert_by<F: FnMut(&T, &T) -> bool>(
        &mut self,
        element: T,
        f: F
    ) -> usize { ... } }

Provided methods

fn sorted_insert_by<F: FnMut(&T, &T) -> bool>(
    &mut self,
    element: T,
    f: F
) -> usize
[src]

Insert elements to this sorted collection by a specific comparator and return the inserted index. Use linear search to find the index where a matching element could be inserted.

Loading content...

Implementations on Foreign Types

impl<T> SortedInsertBy<T> for Vec<T>[src]

impl<T> SortedInsertBy<T> for VecDeque<T>[src]

Loading content...

Implementors

Loading content...