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.

Implementors§

source§

impl<T> ToMatrix for Twhere 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