Trait serde::lib::core::simd::ToBitMask

source ·
pub trait ToBitMask: Sealed {
    type BitMask;

    fn to_bitmask(self) -> Self::BitMask;
    fn from_bitmask(bitmask: Self::BitMask) -> Self;
}
🔬This is a nightly-only experimental API. (portable_simd)
Expand description

Converts masks to and from integer bitmasks.

Each bit of the bitmask corresponds to a mask lane, starting with the LSB.

Required Associated Types

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

The integer bitmask type.

Required Methods

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

Converts a mask to a bitmask.

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

Converts a bitmask to a mask.

Implementors