Trait Map

Source
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§

Source

fn map<F: FnOnce(f32) -> f32>(&self, op: F) -> Self

Returns the result of the operation.

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.

Implementors§