#[repr(transparent)]pub struct Mask<T, const LANES: usize>(Simd<T, LANES>)
where
T: MaskElement,
LaneCount<LANES>: SupportedLaneCount;
🔬This is a nightly-only experimental API. (
portable_simd
#86656)Tuple Fields§
§0: Simd<T, LANES>
🔬This is a nightly-only experimental API. (
portable_simd
#86656)Implementations§
source§impl<T, const LANES: usize> Mask<T, LANES>where
T: MaskElement,
LaneCount<LANES>: SupportedLaneCount,
impl<T, const LANES: usize> Mask<T, LANES>where T: MaskElement, LaneCount<LANES>: SupportedLaneCount,
pub fn splat(value: bool) -> Self
🔬This is a nightly-only experimental API. (
portable_simd
#86656)pub unsafe fn test_unchecked(&self, lane: usize) -> bool
🔬This is a nightly-only experimental API. (
portable_simd
#86656)pub unsafe fn set_unchecked(&mut self, lane: usize, value: bool)
🔬This is a nightly-only experimental API. (
portable_simd
#86656)pub fn to_int(self) -> Simd<T, LANES>
🔬This is a nightly-only experimental API. (
portable_simd
#86656)pub unsafe fn from_int_unchecked(value: Simd<T, LANES>) -> Self
🔬This is a nightly-only experimental API. (
portable_simd
#86656)pub fn convert<U>(self) -> Mask<U, LANES>where U: MaskElement,
🔬This is a nightly-only experimental API. (
portable_simd
#86656)pub(crate) fn to_bitmask_integer<U: ReverseBits>(self) -> Uwhere Mask<T, LANES>: ToBitMask<BitMask = U>,
🔬This is a nightly-only experimental API. (
portable_simd
#86656)pub(crate) fn from_bitmask_integer<U: ReverseBits>(bitmask: U) -> Selfwhere Mask<T, LANES>: ToBitMask<BitMask = U>,
🔬This is a nightly-only experimental API. (
portable_simd
#86656)pub fn any(self) -> bool
🔬This is a nightly-only experimental API. (
portable_simd
#86656)pub fn all(self) -> bool
🔬This is a nightly-only experimental API. (
portable_simd
#86656)Trait Implementations§
source§impl<T, const LANES: usize> BitAnd<Mask<T, LANES>> for Mask<T, LANES>where
T: MaskElement,
LaneCount<LANES>: SupportedLaneCount,
impl<T, const LANES: usize> BitAnd<Mask<T, LANES>> for Mask<T, LANES>where T: MaskElement, LaneCount<LANES>: SupportedLaneCount,
source§impl<T, const LANES: usize> BitOr<Mask<T, LANES>> for Mask<T, LANES>where
T: MaskElement,
LaneCount<LANES>: SupportedLaneCount,
impl<T, const LANES: usize> BitOr<Mask<T, LANES>> for Mask<T, LANES>where T: MaskElement, LaneCount<LANES>: SupportedLaneCount,
source§impl<T, const LANES: usize> BitXor<Mask<T, LANES>> for Mask<T, LANES>where
T: MaskElement,
LaneCount<LANES>: SupportedLaneCount,
impl<T, const LANES: usize> BitXor<Mask<T, LANES>> for Mask<T, LANES>where T: MaskElement, LaneCount<LANES>: SupportedLaneCount,
source§impl<T, const LANES: usize> Clone for Mask<T, LANES>where
T: MaskElement,
LaneCount<LANES>: SupportedLaneCount,
impl<T, const LANES: usize> Clone for Mask<T, LANES>where T: MaskElement, LaneCount<LANES>: SupportedLaneCount,
source§impl<T, const LANES: usize> Eq for Mask<T, LANES>where
T: MaskElement + Eq,
LaneCount<LANES>: SupportedLaneCount,
impl<T, const LANES: usize> Eq for Mask<T, LANES>where T: MaskElement + Eq, LaneCount<LANES>: SupportedLaneCount,
fn assert_receiver_is_total_eq(&self)
source§impl<T, const LANES: usize> From<Mask<T, LANES>> for Simd<T, LANES>where
T: MaskElement,
LaneCount<LANES>: SupportedLaneCount,
impl<T, const LANES: usize> From<Mask<T, LANES>> for Simd<T, LANES>where T: MaskElement, LaneCount<LANES>: SupportedLaneCount,
source§impl<T, const LANES: usize> Not for Mask<T, LANES>where
T: MaskElement,
LaneCount<LANES>: SupportedLaneCount,
impl<T, const LANES: usize> Not for Mask<T, LANES>where T: MaskElement, LaneCount<LANES>: SupportedLaneCount,
source§impl<T, const LANES: usize> Ord for Mask<T, LANES>where
T: MaskElement + Ord,
LaneCount<LANES>: SupportedLaneCount,
impl<T, const LANES: usize> Ord for Mask<T, LANES>where T: MaskElement + Ord, LaneCount<LANES>: SupportedLaneCount,
source§impl<T, const LANES: usize> PartialEq<Mask<T, LANES>> for Mask<T, LANES>where
T: MaskElement + PartialEq,
LaneCount<LANES>: SupportedLaneCount,
impl<T, const LANES: usize> PartialEq<Mask<T, LANES>> for Mask<T, LANES>where T: MaskElement + PartialEq, LaneCount<LANES>: SupportedLaneCount,
source§impl<T, const LANES: usize> PartialOrd<Mask<T, LANES>> for Mask<T, LANES>where
T: MaskElement + PartialOrd,
LaneCount<LANES>: SupportedLaneCount,
impl<T, const LANES: usize> PartialOrd<Mask<T, LANES>> for Mask<T, LANES>where T: MaskElement + PartialOrd, LaneCount<LANES>: SupportedLaneCount,
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl<T, const LANES: usize> Copy for Mask<T, LANES>where T: MaskElement, LaneCount<LANES>: SupportedLaneCount,
Auto Trait Implementations§
impl<T, const LANES: usize> Freeze for Mask<T, LANES>where T: Freeze,
impl<T, const LANES: usize> RefUnwindSafe for Mask<T, LANES>where T: RefUnwindSafe,
impl<T, const LANES: usize> Send for Mask<T, LANES>where T: Send,
impl<T, const LANES: usize> Sync for Mask<T, LANES>where T: Sync,
impl<T, const LANES: usize> Unpin for Mask<T, LANES>where T: Unpin,
impl<T, const LANES: usize> UnwindSafe for Mask<T, LANES>where T: UnwindSafe,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more