pub trait Apply<T> {
type Cont<_T>;
// Required method
fn apply<U, F>(&self, f: F) -> Self::Cont<U>
where F: Fn(T) -> U;
}
Expand description
The Apply
establishes an interface for owned containers that are capable of applying
some function onto their elements.
Required Associated Types§
Required Methods§
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.