Skip to main content

ConvertVec

Trait ConvertVec 

Source
pub trait ConvertVec<Out> {
    type ItemIn;

    // Required methods
    fn convert_owned<F: FnMut(Self::ItemIn) -> Out>(self, f: F) -> Vec<Out>;
    fn convert<F: FnMut(&Self::ItemIn) -> Out>(&self, f: F) -> Vec<Out>;
}

Required Associated Types§

Required Methods§

Source

fn convert_owned<F: FnMut(Self::ItemIn) -> Out>(self, f: F) -> Vec<Out>

Source

fn convert<F: FnMut(&Self::ItemIn) -> Out>(&self, f: F) -> Vec<Out>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl<T, Out> ConvertVec<Out> for Vec<T>

Source§

type ItemIn = T

Source§

fn convert_owned<F: FnMut(Self::ItemIn) -> Out>(self, f: F) -> Vec<Out>

Source§

fn convert<F: FnMut(&Self::ItemIn) -> Out>(&self, f: F) -> Vec<Out>

Implementors§