Skip to main content

Map01F64

Trait Map01F64 

Source
pub trait Map01F64: Send + Sync {
    // Required method
    fn map(&self, value: f64) -> f64;
}
Expand description

Maps an f64 value into the [0, 1] range.

Required Methods§

Source

fn map(&self, value: f64) -> f64

Converts value into a normalized score.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§