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
#86656)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§
Required Methods§
sourcefn to_bitmask(self) -> Self::BitMask
fn to_bitmask(self) -> Self::BitMask
🔬This is a nightly-only experimental API. (
portable_simd
#86656)Converts a mask to a bitmask.
sourcefn from_bitmask(bitmask: Self::BitMask) -> Self
fn from_bitmask(bitmask: Self::BitMask) -> Self
🔬This is a nightly-only experimental API. (
portable_simd
#86656)Converts a bitmask to a mask.