pub trait VecLike: Deref<Target = [Self::Element]> + DerefMut {
    type Element;

    // Required methods
    fn is_empty(&self) -> bool;
    fn len(&self) -> usize;
    fn pop(&mut self) -> Option<Self::Element>;
    fn push(&mut self, x: Self::Element);
}

Required Associated Types§

Required Methods§

source

fn is_empty(&self) -> bool

source

fn len(&self) -> usize

source

fn pop(&mut self) -> Option<Self::Element>

source

fn push(&mut self, x: Self::Element)

Implementations on Foreign Types§

source§

impl<T, const N: usize> VecLike for ArrayVec<T, N>

§

type Element = T

source§

fn is_empty(&self) -> bool

source§

fn len(&self) -> usize

source§

fn pop(&mut self) -> Option<Self::Element>

source§

fn push(&mut self, x: Self::Element)

Implementors§