Trait core::slice::ImmutableOrdVector[src]

pub trait ImmutableOrdVector<T: Ord> {
    fn bsearch_elem(&self, x: &T) -> Option<uint>;
}

Extension methods for vectors containing Ord elements.

Required Methods

fn bsearch_elem(&self, x: &T) -> Option<uint>

Binary search a sorted vector for a given element.

Returns the index of the element or None if not found.

Implementors