pub trait OwnedVector<T> { fn move_iter(self) -> MoveIterator<T>; fn move_rev_iter(self) -> MoveRevIterator<T>; fn reserve(&mut self, n: uint); fn reserve_at_least(&mut self, n: uint); fn reserve_additional(&mut self, n: uint); fn capacity(&self) -> uint; fn shrink_to_fit(&mut self); fn push(&mut self, t: T); fn push_all_move(&mut self, rhs: ~[T]); fn pop(&mut self) -> T; fn pop_opt(&mut self) -> Option<T>; fn shift(&mut self) -> T; fn shift_opt(&mut self) -> Option<T>; fn unshift(&mut self, x: T); fn insert(&mut self, i: uint, x: T); fn remove(&mut self, i: uint) -> T; fn swap_remove(&mut self, index: uint) -> T; fn truncate(&mut self, newlen: uint); fn retain(&mut self, f: &fn(t: &T) -> bool); fn partition(self, f: &fn(&T) -> bool) -> (~[T], ~[T]); fn grow_fn(&mut self, n: uint, op: &fn(uint) -> T); }
fn move_iter(self) -> MoveIterator<T>
fn move_rev_iter(self) -> MoveRevIterator<T>
fn reserve(&mut self, n: uint)
fn reserve_at_least(&mut self, n: uint)
fn reserve_additional(&mut self, n: uint)
fn capacity(&self) -> uint
fn shrink_to_fit(&mut self)
fn push(&mut self, t: T)
fn push_all_move(&mut self, rhs: ~[T])
fn pop(&mut self) -> T
fn pop_opt(&mut self) -> Option<T>
fn shift(&mut self) -> T
fn shift_opt(&mut self) -> Option<T>
fn unshift(&mut self, x: T)
fn insert(&mut self, i: uint, x: T)
fn remove(&mut self, i: uint) -> T
fn swap_remove(&mut self, index: uint) -> T
fn truncate(&mut self, newlen: uint)
fn retain(&mut self, f: &fn(t: &T) -> bool)
fn partition(self, f: &fn(&T) -> bool) -> (~[T], ~[T])
fn grow_fn(&mut self, n: uint, op: &fn(uint) -> T)
impl<T> OwnedVector<T> for ~[T]
Prefix searches with a type followed by a colon (e.g.
fn:
) to restrict the search to a given type.
Accepted types are: fn
, mod
,
struct
(or str
), enum
,
trait
, typedef
(or
tdef
).