Skip to main content

Pluck

Trait Pluck 

Source
pub trait Pluck<T> {
    // Required method
    fn pluck<R, F>(&mut self, f: F) -> Vec<R>
       where F: Fn(T) -> Result<R, T>;
}

Required Methods§

Source

fn pluck<R, F>(&mut self, f: F) -> Vec<R>
where F: Fn(T) -> Result<R, T>,

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> Pluck<T> for Vec<T>

Source§

fn pluck<R, F>(&mut self, f: F) -> Vec<R>
where F: Fn(T) -> Result<R, T>,

Implementors§