scalar

Trait Scalar

Source
pub trait Scalar:
    Copy
    + Send
    + PartialEq
    + PartialOrd
    + Default
    + Zero
    + One
    + Add<Self, Output = Self>
    + AddAssign<Self>
    + Sub<Self, Output = Self>
    + SubAssign<Self>
    + Mul<Self, Output = Self>
    + MulAssign<Self>
    + Div<Self, Output = Self>
    + DivAssign<Self>
    + Rem<Self, Output = Self>
    + RemAssign<Self>
    + Neg<Output = Self>
    + Abs { }

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<S> Scalar for S
where S: Copy + Send + PartialEq + PartialOrd + Default + Zero + One + Add<S, Output = S> + AddAssign<S> + Sub<S, Output = S> + SubAssign<S> + Mul<S, Output = S> + MulAssign<S> + Div<S, Output = S> + DivAssign<S> + Rem<S, Output = S> + RemAssign<S> + Neg<Output = S> + Abs,