Skip to main content

VectorOpsByValue

Trait VectorOpsByValue 

Source
pub trait VectorOpsByValue<Rhs = Self, Output = Self>:
    VectorCommon
    + Add<Rhs, Output = Output>
    + Sub<Rhs, Output = Output> { }
Expand description

Operations on vectors by value (addition and subtraction).

This trait defines vector addition and subtraction when both operands are owned or references.

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§

Source§

impl<V, Rhs, Output> VectorOpsByValue<Rhs, Output> for V
where V: VectorCommon + Add<Rhs, Output = Output> + Sub<Rhs, Output = Output>,