Trait RealByValue

Source
pub trait RealByValue<Rhs = Self, Output = Self>:
    Sqrt<Output = Output>
    + Exp<Output = Output>
    + Pow<Rhs, Output = Output>
    + Ln<Output = Output>
    + Sin<Output = Output>
    + Cos<Output = Output>
    + Sized
    + NumericByValue<Rhs, Output> { }
Expand description

A trait defining what a real number type is in terms of by value numerical operations needed on top of operations defined by Numeric for some functions.

The requirements on top of Numeric are Sqrt, Exp, Pow, Ln, Sin, Cos and Sized.

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.

Implementors§

Source§

impl<T, Rhs, Output> RealByValue<Rhs, Output> for T
where T: Sqrt<Output = Output> + Exp<Output = Output> + Pow<Rhs, Output = Output> + Ln<Output = Output> + Sin<Output = Output> + Cos<Output = Output> + Sized + NumericByValue<Rhs, Output>,

Anything which implements all the super traits will automatically implement this trait too. This covers primitives such as f32 & f64 as well as Traces and Records of those types.