Trait mz_ore::vec::Vector

source ·
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§

source

fn push(&mut self, value: T)

Appends an element to the vector.

source

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

source§

fn push(&mut self, value: u8)

source§

fn extend_from_slice(&mut self, other: &[u8])

source§

impl<A> Vector<<A as Array>::Item> for SmallVec<A>
where A: Array,

source§

fn push(&mut self, value: A::Item)

source§

fn extend_from_slice(&mut self, other: &[A::Item])
where A::Item: Copy,

source§

impl<T> Vector<T> for Vec<T>

source§

fn push(&mut self, value: T)

source§

fn extend_from_slice(&mut self, other: &[T])
where T: Copy,

Implementors§