FloatNumber

Trait FloatNumber 

Source
pub trait FloatNumber:
    Copy
    + Float
    + NumCast
    + FromPrimitive
    + SubsetOf<f64>
    + Scalar
    + ClosedAdd
    + ClosedMul
    + ClosedDiv
    + ClosedSub
    + ClosedNeg
    + ClosedAddAssign
    + ClosedMulAssign
    + ClosedDivAssign
    + ClosedSubAssign
    + 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.

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 FloatNumber for f32

Implementation of the SolverNumFloat trait for f32

Source§

impl FloatNumber for f64

Implementation of the SolverNumFloat trait for f64

Implementors§