Trait VecExt

Source
pub trait VecExt<T>: Sealed {
    // Required methods
    fn insert_vec(&mut self, index: usize, other: Vec<T>);
    fn remove_if<F>(&mut self, f: F)
       where F: FnMut(&mut T) -> bool;
}
Available on crate feature alloc only.

Required Methods§

Source

fn insert_vec(&mut self, index: usize, other: Vec<T>)

Source

fn remove_if<F>(&mut self, f: F)
where F: FnMut(&mut T) -> bool,

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl<T> VecExt<T> for Vec<T>

Source§

fn insert_vec(&mut self, index: usize, v: Vec<T>)

Source§

fn remove_if<F>(&mut self, f: F)
where F: FnMut(&mut T) -> bool,

Implementors§