Trait peroxide::traits::num::Real

source ·
pub trait Real: PowOps + TrigOps + ExpLogOps + Neg + PartialOrd + Add<Output = Self> + Mul<Output = Self> + Div<Output = Self> + Sub<Output = Self> + Add<f64, Output = Self> + Mul<f64, Output = Self> + Div<f64, Output = Self> + Sub<f64, Output = Self> + Clone + Copy {
    // Required methods
    fn to_f64(&self) -> f64;
    fn from_f64(f: f64) -> Self;
    fn to_ad(&self) -> AD;
}

Required Methods§

source

fn to_f64(&self) -> f64

source

fn from_f64(f: f64) -> Self

source

fn to_ad(&self) -> AD

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl Real for f64

source§

fn to_f64(&self) -> f64

source§

fn from_f64(f: f64) -> Self

source§

fn to_ad(&self) -> AD

Implementors§

source§

impl Real for AD