pub trait Map {
// Required method
fn map<F: FnOnce(f32) -> f32>(&self, op: F) -> Self;
}
Expand description
A trait for values that can be mapped by applying a function.
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.