Skip to main content

SubMasked

Trait SubMasked 

Source
pub trait SubMasked<Mask, Rhs = Self>: Sub<Rhs> {
    // Required methods
    fn sub_c(self, mask: Mask, rhs: Rhs) -> Self::Output;
    fn sub_m(self, src: Self, mask: Mask, rhs: Rhs) -> Self::Output;
    fn sub_z(self, mask: Mask, rhs: Rhs) -> Self::Output;
}
Expand description

Masked variants of the Sub trait.

Required Methods§

Source

fn sub_c(self, mask: Mask, rhs: Rhs) -> Self::Output

Computes Sub with rhs where mask is true.

Source

fn sub_m(self, src: Self, mask: Mask, rhs: Rhs) -> Self::Output

Merges Sub with src using mask, returning src where mask is false.

Source

fn sub_z(self, mask: Mask, rhs: Rhs) -> Self::Output

Computes Sub masked (zeroed where mask is false).

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§