Skip to main content

DualNumFloat

Trait DualNumFloat 

Source
pub trait DualNumFloat:
    DualNumCopy
    + Float
    + FloatConst {
    const THIRD: Self;
    const HALF: Self;
    const TWO: Self;
    const THREE: Self;
    const FOUR: Self;
    const SIX: Self;
    const TEN: Self;
    const FIFTEEN: Self;
}
Expand description

The underlying data type of individual derivatives. Implemented for f32 or f64.

Required Associated Constants§

Source

const THIRD: Self

Source

const HALF: Self

Source

const TWO: Self

Source

const THREE: Self

Source

const FOUR: Self

Source

const SIX: Self

Source

const TEN: Self

Source

const FIFTEEN: Self

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementations on Foreign Types§

Source§

impl DualNumFloat for f32

Source§

const THIRD: Self

Source§

const HALF: Self = 0.5

Source§

const TWO: Self = 2.0

Source§

const THREE: Self = 3.0

Source§

const FOUR: Self = 4.0

Source§

const SIX: Self = 6.0

Source§

const TEN: Self = 10.0

Source§

const FIFTEEN: Self = 15.0

Source§

impl DualNumFloat for f64

Source§

const THIRD: Self

Source§

const HALF: Self = 0.5

Source§

const TWO: Self = 2.0

Source§

const THREE: Self = 3.0

Source§

const FOUR: Self = 4.0

Source§

const SIX: Self = 6.0

Source§

const TEN: Self = 10.0

Source§

const FIFTEEN: Self = 15.0

Implementors§