Struct syntax::util::small_vector::SmallVector[src]
pub struct SmallVector<T> {
// some fields omitted
}A vector type optimized for cases where the size is almost always 0 or 1
pub struct SmallVector<T> {
// some fields omitted
}A vector type optimized for cases where the size is almost always 0 or 1
impl<T> SmallVector<T>fn zero() -> SmallVector<T>fn one(v: T) -> SmallVector<T>fn many(vs: Vec<T>) -> SmallVector<T>fn as_slice<'a>(&'a self) -> &'a [T]fn push(&mut self, v: T)fn push_all(&mut self, other: SmallVector<T>)fn get<'a>(&'a self, idx: uint) -> &'a Tfn expect_one(self, err: &'static str) -> Tfn move_iter(self) -> MoveItems<T>impl<T> Collection for SmallVector<T>impl<T> FromIterator<T> for SmallVector<T>fn from_iter<I: Iterator<T>>(iter: I) -> SmallVector<T>impl<T> Extendable<T> for SmallVector<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).