pub unsafe 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 #86656)
Expand description

Converts masks to and from integer bitmasks.

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

Safety

This trait is unsafe and sealed, since the BitMask type must match the number of lanes in the mask.

Required Associated Types

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

The integer bitmask type.

Required Methods

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

Converts a mask to a bitmask.

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

Converts a bitmask to a mask.

Implementors

This documentation is an old archive. Please see https://rust.docs.kernel.org instead.