pub trait Sealed {
    const TRUE: Self;
    const FALSE: Self;

    fn valid<const LANES: usize>(values: Simd<Self, LANES>) -> bool
    where
        LaneCount<LANES>: SupportedLaneCount,
        Self: SimdElement
; fn eq(self, other: Self) -> bool; }
🔬 This is a nightly-only experimental API. (portable_simd #86656)
Expand description

Not only does this seal the MaskElement trait, but these functions prevent other traits from bleeding into the parent bounds.

For example, eq could be provided by requiring MaskElement: PartialEq, but that would prevent us from ever removing that bound, or from implementing MaskElement on non-PartialEq types in the future.

Required Associated Constants

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

Required Methods

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

Implementors