Trait collections::slice::ImmutableOrdVector[src]
pub trait ImmutableOrdVector<T: Ord> {
fn bsearch_elem<T: Ord>(&self, x: &T) -> Option<uint>;
}Extension methods for vectors containing Ord elements.
Required Methods
fn bsearch_elem<T: Ord>(&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
impl<'a, T: Ord> ImmutableOrdVector<T> for &'a [T]