SimdPartialEq in std::simd::cmp - Rust (original) (raw)

Trait SimdPartialEq

Source

pub trait SimdPartialEq {
    type Mask;

    // Required methods
    fn simd_eq(self, other: Self) -> Self::Mask;
    fn simd_ne(self, other: Self) -> Self::Mask;
}

🔬This is a nightly-only experimental API. (portable_simd #86656)

Expand description

Parallel PartialEq.

Source

🔬This is a nightly-only experimental API. (portable_simd #86656)

The mask type returned by each comparison.

Source

🔬This is a nightly-only experimental API. (portable_simd #86656)

Test if each element is equal to the corresponding element in other.

Source

🔬This is a nightly-only experimental API. (portable_simd #86656)

Test if each element is not equal to the corresponding element in other.

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.