FloatLike

Trait FloatLike 

Source
pub trait FloatLike<Scalar>:
    Neg<Output = Self>
    + Add<Output = Self>
    + Sub<Output = Self>
    + Mul<Output = Self>
    + Div<Output = Self>
    + for<'a> Add<&'a Self, Output = Self>
    + for<'a> Sub<&'a Self, Output = Self>
    + for<'a> Mul<&'a Self, Output = Self>
    + for<'a> Div<&'a Self, Output = Self>
    + Add<Scalar, Output = Self>
    + Sub<Scalar, Output = Self>
    + Mul<Scalar, Output = Self>
    + Div<Scalar, Output = Self>
    + for<'a> Add<&'a Scalar, Output = Self>
    + for<'a> Sub<&'a Scalar, Output = Self>
    + for<'a> Mul<&'a Scalar, Output = Self>
    + for<'a> Div<&'a Scalar, Output = Self>
    + AddAssign<Self>
    + SubAssign<Self>
    + MulAssign<Self>
    + DivAssign<Self>
    + for<'a> AddAssign<&'a Self>
    + for<'a> SubAssign<&'a Self>
    + for<'a> MulAssign<&'a Self>
    + for<'a> DivAssign<&'a Self>
    + AddAssign<Scalar>
    + SubAssign<Scalar>
    + MulAssign<Scalar>
    + DivAssign<Scalar>
    + for<'a> AddAssign<&'a Scalar>
    + for<'a> SubAssign<&'a Scalar>
    + for<'a> MulAssign<&'a Scalar>
    + for<'a> DivAssign<&'a Scalar>
    + Sum<Self>
    + for<'a> Sum<&'a Self>
    + Sized
    + Clone
    + Copy
    + Zero
    + One
    + PartialOrd
    + PartialOrd<Scalar>
    + PartialEq
    + PartialEq<Scalar>
    + Debug
    + From<Scalar>
    + Into<Scalar> {
Show 25 methods // Required methods fn sin(self) -> Self; fn cos(self) -> Self; fn tan(self) -> Self; fn sinh(self) -> Self; fn cosh(self) -> Self; fn tanh(self) -> Self; fn ln(self) -> Self; fn log(self, base: Scalar) -> Self; fn log2(self) -> Self; fn log10(self) -> Self; fn exp(self) -> Self; fn exp2(self) -> Self; fn powf(self, exponent: Scalar) -> Self; fn powi(self, exponent: i32) -> Self; fn sqrt(self) -> Self; fn cbrt(self) -> Self; fn recip(self) -> Self; fn abs(self) -> Self; fn asin(self) -> Self; fn acos(self) -> Self; fn atan(self) -> Self; fn asinh(self) -> Self; fn acosh(self) -> Self; fn atanh(self) -> Self; fn hypot(self, other: Self) -> Self;
}

Required Methods§

Source

fn sin(self) -> Self

Source

fn cos(self) -> Self

Source

fn tan(self) -> Self

Source

fn sinh(self) -> Self

Source

fn cosh(self) -> Self

Source

fn tanh(self) -> Self

Source

fn ln(self) -> Self

Source

fn log(self, base: Scalar) -> Self

Source

fn log2(self) -> Self

Source

fn log10(self) -> Self

Source

fn exp(self) -> Self

Source

fn exp2(self) -> Self

Source

fn powf(self, exponent: Scalar) -> Self

Source

fn powi(self, exponent: i32) -> Self

Source

fn sqrt(self) -> Self

Source

fn cbrt(self) -> Self

Source

fn recip(self) -> Self

Source

fn abs(self) -> Self

Source

fn asin(self) -> Self

Source

fn acos(self) -> Self

Source

fn atan(self) -> Self

Source

fn asinh(self) -> Self

Source

fn acosh(self) -> Self

Source

fn atanh(self) -> Self

Source

fn hypot(self, other: Self) -> Self

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl FloatLike<f32> for f32

Source§

fn sin(self) -> Self

Source§

fn cos(self) -> Self

Source§

fn tan(self) -> Self

Source§

fn sinh(self) -> Self

Source§

fn cosh(self) -> Self

Source§

fn tanh(self) -> Self

Source§

fn ln(self) -> Self

Source§

fn log(self, param: f32) -> Self

Source§

fn log2(self) -> Self

Source§

fn log10(self) -> Self

Source§

fn exp(self) -> Self

Source§

fn exp2(self) -> Self

Source§

fn powi(self, param: i32) -> Self

Source§

fn powf(self, param: f32) -> Self

Source§

fn sqrt(self) -> Self

Source§

fn cbrt(self) -> Self

Source§

fn recip(self) -> Self

Source§

fn abs(self) -> Self

Source§

fn asin(self) -> Self

Source§

fn acos(self) -> Self

Source§

fn atan(self) -> Self

Source§

fn asinh(self) -> Self

Source§

fn acosh(self) -> Self

Source§

fn atanh(self) -> Self

Source§

fn hypot(self, param: Self) -> Self

Source§

impl FloatLike<f64> for f64

Source§

fn sin(self) -> Self

Source§

fn cos(self) -> Self

Source§

fn tan(self) -> Self

Source§

fn sinh(self) -> Self

Source§

fn cosh(self) -> Self

Source§

fn tanh(self) -> Self

Source§

fn ln(self) -> Self

Source§

fn log(self, param: f64) -> Self

Source§

fn log2(self) -> Self

Source§

fn log10(self) -> Self

Source§

fn exp(self) -> Self

Source§

fn exp2(self) -> Self

Source§

fn powi(self, param: i32) -> Self

Source§

fn powf(self, param: f64) -> Self

Source§

fn sqrt(self) -> Self

Source§

fn cbrt(self) -> Self

Source§

fn recip(self) -> Self

Source§

fn abs(self) -> Self

Source§

fn asin(self) -> Self

Source§

fn acos(self) -> Self

Source§

fn atan(self) -> Self

Source§

fn asinh(self) -> Self

Source§

fn acosh(self) -> Self

Source§

fn atanh(self) -> Self

Source§

fn hypot(self, param: Self) -> Self

Implementors§