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<Self, Output = Self>
    + AddAssign<Self>
    + Mul<Self, Output = Self>
    + MulAssign<Self>
    + Sub<Self, Output = Self>
    + SubAssign<Self>
    + Div<Self, Output = Self>
    + DivAssign<Self>
    + Rem<Self, Output = Self>
    + RemAssign<Self>
    + 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: 'static + Send + Sync + Copy + Radians + One + Zero + Sqrt + FromPrimitive + Min + Max + Signum + Powf + Trig + PartialEq + PartialOrd + Add<T, Output = T> + AddAssign<T> + Mul<T, Output = T> + MulAssign<T> + Sub<T, Output = T> + SubAssign<T> + Div<T, Output = T> + DivAssign<T> + Rem<T, Output = T> + RemAssign<T> + Neg<Output = T>,