Struct syntax::util::small_vector::SmallVectorUnstable
[-] [+]
[src]
pub struct SmallVector<T> { // some fields omitted }
A vector type optimized for cases where the size is almost always 0 or 1
Methods
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: usize) -> &'a T
fn expect_one(self, err: &'static str) -> T
fn move_iter(self) -> IntoIter<T>
Deprecated: use into_iter
.