Trait VecLikeAbstract

Source
pub trait VecLikeAbstract: VecLike {
    // Required method
    fn retain<F>(&mut self, f: F)
       where F: FnMut(Self::Elem) -> bool;
}

Required Methods§

Source

fn retain<F>(&mut self, f: F)
where F: FnMut(Self::Elem) -> 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 VecLikeAbstract for String

Source§

fn retain<F>(&mut self, f: F)
where F: FnMut(Self::Elem) -> bool,

Source§

impl<A: Array<Item = u8>> VecLikeAbstract for SmallString<A>

Available on crate feature smallstr only.
Source§

fn retain<F>(&mut self, f: F)
where F: FnMut(Self::Elem) -> bool,

Implementors§