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
.
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.