Skip to main content

NegMasked

Trait NegMasked 

Source
pub trait NegMasked<Mask>: Neg {
    // Required methods
    fn neg_c(self, mask: Mask) -> Self::Output;
    fn neg_m(self, src: Self, mask: Mask) -> Self::Output;
    fn neg_z(self, mask: Mask) -> Self::Output;
}
Expand description

Masked variants of the Neg trait.

Required Methods§

Source

fn neg_c(self, mask: Mask) -> Self::Output

Computes Neg where mask is true, does nothing where false.

Source

fn neg_m(self, src: Self, mask: Mask) -> Self::Output

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

Source

fn neg_z(self, mask: Mask) -> Self::Output

Computes Neg 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§