Skip to main content

FromFr

Trait FromFr 

Source
pub trait FromFr {
    // Required method
    fn from_fr<Input>(flex: Input) -> Self
       where Input: Into<f32> + Copy;
}
Expand description

Trait to create constant percent values from plain numbers

Required Methods§

Source

fn from_fr<Input>(flex: Input) -> Self
where Input: Into<f32> + Copy,

Converts into an Into<f32> into Self

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§