Scalar

Trait Scalar 

Source
pub trait Scalar:
    RealField
    + Float
    + FloatConst
    + Default { }
Expand description

A combination of the RealField trait from nalgebra and Float from num_traits

The main goal is to provide an interface that can switch between f32 and f64

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

Source§

impl Scalar for f64

Implementors§