Trait cushy::value::MapEach

source ·
pub trait MapEach<T, U> {
    type Ref<'a>
       where T: 'a;

    // Required method
    fn map_each<F>(&self, map_each: F) -> Dynamic<U>
       where F: for<'a> FnMut(Self::Ref<'a>) -> U + Send + 'static;
}
Expand description

A type that can create a Dynamic<U> from a T passed into a mapping function.

Required Associated Types§

source

type Ref<'a> where T: 'a

The borrowed representation of T passed into the mapping function.

Required Methods§

source

fn map_each<F>(&self, map_each: F) -> Dynamic<U>
where F: for<'a> FnMut(Self::Ref<'a>) -> U + Send + 'static,

Apply map_each to each value in self, storing the result in the returned dynamic.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl<U, T0, Y0> MapEach<(T0,), U> for (&Y0,)
where U: PartialEq + Send + 'static, T0: Send + 'static, Y0: DynamicRead<T0> + Source<T0> + Clone + Send + 'static,

§

type Ref<'a> = (&'a T0,)

source§

fn map_each<F>(&self, map_each: F) -> Dynamic<U>
where F: for<'a> FnMut(Self::Ref<'a>) -> U + Send + 'static,

source§

impl<U, T0, Y0, T1, Y1> MapEach<(T0, T1), U> for (&Y0, &Y1)
where U: PartialEq + Send + 'static, T0: Send + 'static, Y0: DynamicRead<T0> + Source<T0> + Clone + Send + 'static, T1: Send + 'static, Y1: DynamicRead<T1> + Source<T1> + Clone + Send + 'static,

§

type Ref<'a> = (&'a T0, &'a T1)

source§

fn map_each<F>(&self, map_each: F) -> Dynamic<U>
where F: for<'a> FnMut(Self::Ref<'a>) -> U + Send + 'static,

source§

impl<U, T0, Y0, T1, Y1, T2, Y2> MapEach<(T0, T1, T2), U> for (&Y0, &Y1, &Y2)
where U: PartialEq + Send + 'static, T0: Send + 'static, Y0: DynamicRead<T0> + Source<T0> + Clone + Send + 'static, T1: Send + 'static, Y1: DynamicRead<T1> + Source<T1> + Clone + Send + 'static, T2: Send + 'static, Y2: DynamicRead<T2> + Source<T2> + Clone + Send + 'static,

§

type Ref<'a> = (&'a T0, &'a T1, &'a T2)

source§

fn map_each<F>(&self, map_each: F) -> Dynamic<U>
where F: for<'a> FnMut(Self::Ref<'a>) -> U + Send + 'static,

source§

impl<U, T0, Y0, T1, Y1, T2, Y2, T3, Y3> MapEach<(T0, T1, T2, T3), U> for (&Y0, &Y1, &Y2, &Y3)
where U: PartialEq + Send + 'static, T0: Send + 'static, Y0: DynamicRead<T0> + Source<T0> + Clone + Send + 'static, T1: Send + 'static, Y1: DynamicRead<T1> + Source<T1> + Clone + Send + 'static, T2: Send + 'static, Y2: DynamicRead<T2> + Source<T2> + Clone + Send + 'static, T3: Send + 'static, Y3: DynamicRead<T3> + Source<T3> + Clone + Send + 'static,

§

type Ref<'a> = (&'a T0, &'a T1, &'a T2, &'a T3)

source§

fn map_each<F>(&self, map_each: F) -> Dynamic<U>
where F: for<'a> FnMut(Self::Ref<'a>) -> U + Send + 'static,

source§

impl<U, T0, Y0, T1, Y1, T2, Y2, T3, Y3, T4, Y4> MapEach<(T0, T1, T2, T3, T4), U> for (&Y0, &Y1, &Y2, &Y3, &Y4)
where U: PartialEq + Send + 'static, T0: Send + 'static, Y0: DynamicRead<T0> + Source<T0> + Clone + Send + 'static, T1: Send + 'static, Y1: DynamicRead<T1> + Source<T1> + Clone + Send + 'static, T2: Send + 'static, Y2: DynamicRead<T2> + Source<T2> + Clone + Send + 'static, T3: Send + 'static, Y3: DynamicRead<T3> + Source<T3> + Clone + Send + 'static, T4: Send + 'static, Y4: DynamicRead<T4> + Source<T4> + Clone + Send + 'static,

§

type Ref<'a> = (&'a T0, &'a T1, &'a T2, &'a T3, &'a T4)

source§

fn map_each<F>(&self, map_each: F) -> Dynamic<U>
where F: for<'a> FnMut(Self::Ref<'a>) -> U + Send + 'static,

source§

impl<U, T0, Y0, T1, Y1, T2, Y2, T3, Y3, T4, Y4, T5, Y5> MapEach<(T0, T1, T2, T3, T4, T5), U> for (&Y0, &Y1, &Y2, &Y3, &Y4, &Y5)
where U: PartialEq + Send + 'static, T0: Send + 'static, Y0: DynamicRead<T0> + Source<T0> + Clone + Send + 'static, T1: Send + 'static, Y1: DynamicRead<T1> + Source<T1> + Clone + Send + 'static, T2: Send + 'static, Y2: DynamicRead<T2> + Source<T2> + Clone + Send + 'static, T3: Send + 'static, Y3: DynamicRead<T3> + Source<T3> + Clone + Send + 'static, T4: Send + 'static, Y4: DynamicRead<T4> + Source<T4> + Clone + Send + 'static, T5: Send + 'static, Y5: DynamicRead<T5> + Source<T5> + Clone + Send + 'static,

§

type Ref<'a> = (&'a T0, &'a T1, &'a T2, &'a T3, &'a T4, &'a T5)

source§

fn map_each<F>(&self, map_each: F) -> Dynamic<U>
where F: for<'a> FnMut(Self::Ref<'a>) -> U + Send + 'static,

Implementors§