Trait sewup::kv::traits::vec::VecLike[][src]

pub trait VecLike<V> {
Show 20 methods fn to_vec(&self) -> Vec<V>;
fn append(&mut self, other: &mut Vec<V>);
fn push(&mut self, value: V);
fn pop(&mut self) -> Option<V>;
fn clear(&mut self);
fn resize_with<F>(&mut self, new_len: usize, f: F)
    where
        F: FnMut() -> V
;
fn resize(&mut self, new_len: usize, value: V);
fn extend_from_slice(&mut self, other: &[V]);
fn dedup(&mut self);
fn swap(&mut self, a: usize, b: usize);
fn reverse(&mut self);
fn contains(&self, x: &V) -> bool;
fn starts_with(&self, needle: &[V]) -> bool;
fn ends_with(&self, needle: &[V]) -> bool;
fn rotate_left(&mut self, mid: usize);
fn rotate_right(&mut self, k: usize);
fn fill_with<F>(&mut self, f: F)
    where
        F: FnMut() -> V
;
fn copy_from_slice(&mut self, src: &[V])
    where
        V: Copy
;
fn sort(&mut self)
    where
        V: Ord
;
fn truncate(&mut self, len: usize);
}

Required methods

Implementors