Skip to main content

MapInternWith

Trait MapInternWith 

Source
pub trait MapInternWith: MapIntern {
    // Required method
    fn map_with_intern<F>(self, other: Self, f: F) -> Self
       where F: FnMut(Self::Item, Self::Item) -> Self::Item;
}
Expand description

Elementwise mapping of two containers of the same type.

Required Methods§

Source

fn map_with_intern<F>(self, other: Self, f: F) -> Self
where F: FnMut(Self::Item, Self::Item) -> Self::Item,

Combine self and other elementwise with f.

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

Source§

fn map_with_intern<F>(self, other: Vec<T>, f: F) -> Vec<T>
where F: FnMut(<Vec<T> as MapIntern>::Item, <Vec<T> as MapIntern>::Item) -> <Vec<T> as MapIntern>::Item,

Source§

impl<T, const N: usize> MapInternWith for [T; N]

Source§

fn map_with_intern<F>(self, other: [T; N], f: F) -> [T; N]
where F: FnMut(<[T; N] as MapIntern>::Item, <[T; N] as MapIntern>::Item) -> <[T; N] as MapIntern>::Item,

Implementors§

Source§

impl<'a, G, T, Idx, const N: usize> MapInternWith for GridViewMut<'a, G, T, Idx, N>
where G: IGrid<T, Idx, N>, Idx: Integer, T: Clone,

Source§

impl<T> MapInternWith for HslaOf<T>

Source§

impl<T> MapInternWith for RgbaOf<T>

Source§

impl<T> MapInternWith for RectangleOf<T>

Source§

impl<T, Idx> MapInternWith for ImageBaseOf<T, Idx>
where Idx: Integer,

Source§

impl<T, Idx, const N: usize> MapInternWith for GridOf<T, Idx, N>
where Idx: Integer,

Source§

impl<T, const N: usize> MapInternWith for Vector<T, N>

Source§

impl<T, const ROW: usize, const COL: usize> MapInternWith for Matrix<T, ROW, COL>