Trait ToMatrix

Source
pub trait ToMatrix:
    Mul<Output = Self>
    + Add<Output = Self>
    + Sub<Output = Self>
    + Zero<Output = Self>
    + Neg<Output = Self>
    + Copy { }
Expand description

Trait a type must satisfy to be element of a matrix. This is mostly to reduce writing trait bounds afterwards.

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> ToMatrix for T
where T: Mul<Output = T> + Add<Output = T> + Sub<Output = T> + Zero<Output = T> + Neg<Output = T> + Copy,

Blanket implementation for ToMatrix for any type that satisfies its bounds.