Skip to main content

Float

Trait Float 

Source
pub trait Float:
    'static
    + Send
    + Sync
    + Copy
    + Radians
    + One
    + Zero
    + Sqrt
    + FromPrimitive
    + Min
    + Max
    + Signum
    + Powf
    + Trig
    + PartialEq
    + PartialOrd
    + Add<Output = Self>
    + AddAssign
    + Mul<Output = Self>
    + MulAssign
    + Sub<Output = Self>
    + SubAssign
    + Div<Output = Self>
    + DivAssign
    + Rem<Output = Self>
    + RemAssign
    + Neg<Output = Self>
    + Trig { }
Expand description

Convenience trait for floats.

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§

Source§

impl<T> Float for T
where T: One + Zero + Sqrt + FromPrimitive + Min + Max + Signum + Powf + Trig + PartialEq + PartialOrd + Add<Output = T> + AddAssign + Mul<Output = T> + 'static + MulAssign + Sub<Output = T> + Send + SubAssign + Div<Output = T> + Sync + DivAssign + Rem<Output = T> + Copy + RemAssign + Neg<Output = T> + Radians,