polars_utils::vec

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", so this trait is not object safe.

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§