cushy::reactive::value

Trait ForEachCloned

Source
pub trait ForEachCloned<T> {
    // Required method
    fn for_each_cloned<F>(&self, for_each: F) -> CallbackHandle
       where F: for<'a> FnMut(T) + Send + 'static;
}
Expand description

A type that can have a for_each operation applied to it.

Required Methods§

Source

fn for_each_cloned<F>(&self, for_each: F) -> CallbackHandle
where F: for<'a> FnMut(T) + Send + 'static,

Apply for_each to each value contained within self.

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<T0, Y0> ForEachCloned<(T0,)> for (&Y0,)
where T0: Clone + Send + 'static, Y0: Source<T0> + Clone + Send + 'static,

Source§

fn for_each_cloned<F>(&self, for_each: F) -> CallbackHandle
where F: for<'a> FnMut((T0,)) + Send + 'static,

Source§

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

Source§

fn for_each_cloned<F>(&self, for_each: F) -> CallbackHandle
where F: for<'a> FnMut((T0, T1)) + Send + 'static,

Source§

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

Source§

fn for_each_cloned<F>(&self, for_each: F) -> CallbackHandle
where F: for<'a> FnMut((T0, T1, T2)) + Send + 'static,

Source§

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

Source§

fn for_each_cloned<F>(&self, for_each: F) -> CallbackHandle
where F: for<'a> FnMut((T0, T1, T2, T3)) + Send + 'static,

Source§

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

Source§

fn for_each_cloned<F>(&self, for_each: F) -> CallbackHandle
where F: for<'a> FnMut((T0, T1, T2, T3, T4)) + Send + 'static,

Source§

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

Source§

fn for_each_cloned<F>(&self, for_each: F) -> CallbackHandle
where F: for<'a> FnMut((T0, T1, T2, T3, T4, T5)) + Send + 'static,

Implementors§