Trait cushy::value::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§
sourcefn for_each_cloned<F>(&self, for_each: F) -> CallbackHandle
fn for_each_cloned<F>(&self, for_each: F) -> CallbackHandle
Apply for_each
to each value contained within self
.
Object Safety§
This trait is not object safe.