Skip to main content

Ops

Trait Ops 

Source
pub trait Ops<T> {
    // Required method
    fn map<F, U>(&self, f: F) -> Vec<U>
       where F: Fn(&T) -> U;
}

Required Methods§

Source

fn map<F, U>(&self, f: F) -> Vec<U>
where F: Fn(&T) -> U,

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 Ops<f32> for Vec<f32>

Source§

fn map<F, U>(&self, f: F) -> Vec<U>
where F: Fn(&f32) -> U,

Source§

impl Ops<f64> for Vec<f64>

Source§

fn map<F, U>(&self, f: F) -> Vec<U>
where F: Fn(&f64) -> U,

Source§

impl Ops<i8> for Vec<i8>

Source§

fn map<F, U>(&self, f: F) -> Vec<U>
where F: Fn(&i8) -> U,

Source§

impl Ops<i16> for Vec<i16>

Source§

fn map<F, U>(&self, f: F) -> Vec<U>
where F: Fn(&i16) -> U,

Source§

impl Ops<i32> for Vec<i32>

Source§

fn map<F, U>(&self, f: F) -> Vec<U>
where F: Fn(&i32) -> U,

Source§

impl Ops<i64> for Vec<i64>

Source§

fn map<F, U>(&self, f: F) -> Vec<U>
where F: Fn(&i64) -> U,

Source§

impl Ops<isize> for Vec<isize>

Source§

fn map<F, U>(&self, f: F) -> Vec<U>
where F: Fn(&isize) -> U,

Source§

impl Ops<u8> for Vec<u8>

Source§

fn map<F, U>(&self, f: F) -> Vec<U>
where F: Fn(&u8) -> U,

Source§

impl Ops<u16> for Vec<u16>

Source§

fn map<F, U>(&self, f: F) -> Vec<U>
where F: Fn(&u16) -> U,

Source§

impl Ops<u32> for Vec<u32>

Source§

fn map<F, U>(&self, f: F) -> Vec<U>
where F: Fn(&u32) -> U,

Source§

impl Ops<u64> for Vec<u64>

Source§

fn map<F, U>(&self, f: F) -> Vec<U>
where F: Fn(&u64) -> U,

Source§

impl Ops<usize> for Vec<usize>

Source§

fn map<F, U>(&self, f: F) -> Vec<U>
where F: Fn(&usize) -> U,

Implementors§