Skip to main content

ScalarNum

Trait ScalarNum 

Source
pub trait ScalarNum:
    'static
    + Copy
    + Zero
    + One
    + Debug
    + Send
    + Sync
    + FromPrimitive
    + Add<Output = Self>
    + Sub<Output = Self>
    + Mul<Output = Self>
    + Div<Output = Self>
    + MulAssign
    + DivAssign
    + AddAssign
    + SubAssign { }
Expand description

Elements that support linear algebra operations.

'static for type-based specialization, Copy so that they don’t need move semantics or destructors, and the rest are numerical traits.

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 ScalarNum for Complex<f32>

Source§

impl ScalarNum for Complex<f64>

Source§

impl ScalarNum for f32

Source§

impl ScalarNum for f64

Implementors§