pub trait Apply<T> {
// Required methods
fn apply(self, action: impl FnMut(T));
fn apply2<U, Second: IntoIterator<Item = U>>(
self,
second: Second,
action: impl FnMut(T, U),
);
}
Required Methods§
fn apply(self, action: impl FnMut(T))
fn apply2<U, Second: IntoIterator<Item = U>>( self, second: Second, action: impl FnMut(T, U), )
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.