Trait cgmath::ElementWise

source ·
pub trait ElementWise<Rhs = Self> {
    // Required methods
    fn add_element_wise(self, rhs: Rhs) -> Self;
    fn sub_element_wise(self, rhs: Rhs) -> Self;
    fn mul_element_wise(self, rhs: Rhs) -> Self;
    fn div_element_wise(self, rhs: Rhs) -> Self;
    fn rem_element_wise(self, rhs: Rhs) -> Self;
    fn add_assign_element_wise(&mut self, rhs: Rhs);
    fn sub_assign_element_wise(&mut self, rhs: Rhs);
    fn mul_assign_element_wise(&mut self, rhs: Rhs);
    fn div_assign_element_wise(&mut self, rhs: Rhs);
    fn rem_assign_element_wise(&mut self, rhs: Rhs);
}
Expand description

Element-wise arithmetic operations. These are supplied for pragmatic reasons, but will usually fall outside of traditional algebraic properties.

Required Methods§

source

fn add_element_wise(self, rhs: Rhs) -> Self

source

fn sub_element_wise(self, rhs: Rhs) -> Self

source

fn mul_element_wise(self, rhs: Rhs) -> Self

source

fn div_element_wise(self, rhs: Rhs) -> Self

source

fn rem_element_wise(self, rhs: Rhs) -> Self

source

fn add_assign_element_wise(&mut self, rhs: Rhs)

source

fn sub_assign_element_wise(&mut self, rhs: Rhs)

source

fn mul_assign_element_wise(&mut self, rhs: Rhs)

source

fn div_assign_element_wise(&mut self, rhs: Rhs)

source

fn rem_assign_element_wise(&mut self, rhs: Rhs)

Implementors§