Trait ode_solvers::dop_shared::FloatNumber
source · pub trait FloatNumber: Copy + Float + NumCast + FromPrimitive + SubsetOf<f64> + Scalar + ClosedAdd + ClosedMul + ClosedDiv + ClosedSub + ClosedNeg + Zero + One { }
Expand description
This trait combines several traits that are useful when writing generic code that shall work in f32 and f64
It is only implemented for f32 and f64 yet.
Object Safety§
This trait is not object safe.
Implementations on Foreign Types§
impl FloatNumber for f32
Implementation of the SolverNumFloat trait for f32
impl FloatNumber for f64
Implementation of the SolverNumFloat trait for f64