Skip to main content

IsLinearOperatable

Trait IsLinearOperatable 

Source
pub trait IsLinearOperatable:
    Debug
    + Copy
    + Clone
    + Sized
    + PartialEq
    + Zero
    + One
    + Add<Output = Self>
    + Sub<Output = Self>
    + Mul<Output = Self>
    + Div<Output = Self>
    + Neg<Output = Self>
    + SubAssign<Self>
    + AddAssign<Self>
    + MulAssign<Self>
    + DivAssign<Self> { }
Expand description

The IsLinearOperatable trait defines a set of operations that must be supported by any type that can be used in linear operations, such as addition, subtraction, multiplication, division, and negation. This trait is implemented for common numeric types such as f64, f32, Complex<f64>, Complex<f32>, and various integer types, allowing them to be used in linear operations throughout the library.

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

Source§

impl IsLinearOperatable for Complex<f64>

Source§

impl IsLinearOperatable for f32

Source§

impl IsLinearOperatable for f64

Source§

impl IsLinearOperatable for i8

Source§

impl IsLinearOperatable for i16

Source§

impl IsLinearOperatable for i32

Source§

impl IsLinearOperatable for i64

Implementors§