Skip to main content

ScalarInterface

Trait ScalarInterface 

Source
pub trait ScalarInterface:
    Sized
    + 'static
    + Debug
    + Display
    + PartialEq
    + PartialOrd
    + Default
    + Copy
    + Clone
    + Num<Output = Self, Output = Self, Output = Self, Output = Self, Output = Self>
    + NumCast
    + Add
    + Sub
    + Mul
    + Div
    + Rem
    + AddAssign
    + SubAssign
    + MulAssign
    + DivAssign
    + RemAssign
    + NanLikeInterface { }
Expand description

Traits any element of a vector should implement.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<T> ScalarInterface for T
where T: PartialOrd + Default + Copy + Clone + Num<Output = T, Output = T, Output = T, Output = T, Output = T> + NumCast + Add + Sub + 'static + Mul + Debug + Div + Display + Rem + PartialEq + AddAssign + SubAssign + MulAssign + DivAssign + RemAssign + NanLikeInterface,