[src]

Trait std::slice::ImmutableTotalOrdVector

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

Extension methods for vectors containing TotalOrd 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