val_to_string

Function val_to_string 

Source
pub fn val_to_string<T: ToString + NumCast>(
    val: T,
    max: T,
    val_rng: T,
    pixel_range: usize,
) -> String
Expand description

Get a suitable string from the value, its max and the pixel range.