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: Self, f: F) -> Self
where F: FnMut(Self::Item, Self::Item) -> Self::Item,

Source§

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

Source§

fn map_with_intern<F>(self, other: Self, f: F) -> Self
where F: FnMut(Self::Item, Self::Item) -> Self::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 RectangleOf<T>

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>