Struct vesema::SortedVec [] [src]

pub struct SortedVec<T> {
    // some fields omitted
}

Methods

impl<T: Ord> SortedVec<T>
[src]

fn new() -> Self

fn with_capacity(size: usize) -> Self

fn from_vec(v: Vec<T>) -> Self

fn from_vec_unchecked(v: Vec<T>) -> Self

fn into_vec(self) -> Vec<T>

fn capacity(&self) -> usize

fn reserve(&mut self, additional: usize)

fn shrink_to_fit(&mut self)

fn iter(&self) -> Iter<T>

fn iter_mut(&mut self) -> IterMut<T>

fn into_iter(self) -> IntoIter<T>

fn first(&self) -> Option<&T>

fn last(&self) -> Option<&T>

fn binary_search_by<F>(&self, f: F) -> Result<usizeusize> where F: FnMut(&T) -> Ordering

fn contains(&self, x: &T) -> bool

fn insert(&mut self, x: T)

fn insert_at(&mut self, idx: usize, x: T)

fn remove(&mut self, x: &T) -> bool

fn remove_at(&mut self, idx: usize) -> T

fn clear(&mut self)

Trait Implementations

impl<T: Default> Default for SortedVec<T>
[src]

fn default() -> SortedVec<T>

Returns the "default value" for a type. Read more

impl<T: Ord> Index<usize> for SortedVec<T>
[src]

type Output = T

The returned type after indexing

fn index(&self, idx: usize) -> &T

The method for the indexing (Foo[Bar]) operation

impl<T: Ord> IndexMut<usize> for SortedVec<T>
[src]

fn index_mut(&mut self, idx: usize) -> &mut T

The method for the indexing (Foo[Bar]) operation