Trait radiorust::numbers::Float

source ·
pub trait Floatwhere
    Self: 'static + Send + Sync,
    Self: Float,
    Self: FloatConst,
    Self: NumAssignOps,
    Self: FftNum,
{ }
Expand description

Trait implemented for f32 and f64

This trait is used as bound on functions which support single and double precision calculations. It should not be relied upon that this trait is implemented for other types than f32 or f64, as this can change with minor/patch version bumps.

See flt! for an example on how to write functions working with generic floats (i.e. f32 or f64, depending on the caller’s choice).

Implementors§