pub trait Vector<T> {
// Required methods
fn push(&mut self, value: T);
fn extend_from_slice(&mut self, other: &[T])
where T: Copy;
}Expand description
A trait for objects that behave like vectors.
Required Methods§
Sourcefn extend_from_slice(&mut self, other: &[T])where
T: Copy,
fn extend_from_slice(&mut self, other: &[T])where
T: Copy,
Copies and appends all elements in a slice to the vector.
Implementations on Foreign Types§
Source§impl Vector<u8> for CompactBytes
Available on crate feature compact_bytes only.
impl Vector<u8> for CompactBytes
Available on crate feature
compact_bytes only.Source§impl<A> Vector<<A as Array>::Item> for SmallVec<A>where
A: Array,
Available on crate feature smallvec only.
impl<A> Vector<<A as Array>::Item> for SmallVec<A>where
A: Array,
Available on crate feature
smallvec only.