extendr_api::prelude

Trait LinalgScalar

Source
pub trait LinalgScalar:
    'static
    + Copy
    + Zero<Output = Self>
    + One<Output = Self>
    + Add
    + Sub<Output = Self>
    + Mul
    + Div<Output = Self> { }
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", so this trait is not object safe.

Implementors§

Source§

impl<T> LinalgScalar for T
where T: One<Output = T> + Add<Output = T> + Sub<Output = T> + 'static + Mul + Copy + Div<Output = T> + Zero,