Skip to main content

Map01F32

Trait Map01F32 

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

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

Required Methods§

Source

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

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§