Trait sorted_insert::SortedInsertBinaryByKey[][src]

pub trait SortedInsertBinaryByKey<T>: SortedInsertBinaryBy<T> {
    fn sorted_insert_binary_asc_by_key<A: Ord, F: FnMut(&T) -> &A>(
        &mut self,
        element: T,
        f: F
    ) -> usize { ... }
fn sorted_insert_binary_desc_by_key<A: Ord, F: FnMut(&T) -> &A>(
        &mut self,
        element: T,
        f: F
    ) -> usize { ... } }

Provided methods

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

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

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

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

Loading content...

Implementations on Foreign Types

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

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

Loading content...

Implementors

Loading content...