#[repr(transparent)]pub(crate) struct Mask<T, const N: usize>(Simd<T, N>)
where
T: MaskElement,
LaneCount<N>: SupportedLaneCount;
🔬This is a nightly-only experimental API. (
portable_simd
#86656)Tuple Fields§
§0: Simd<T, N>
🔬This is a nightly-only experimental API. (
portable_simd
#86656)Implementations§
Source§impl<T, const N: usize> Mask<T, N>
impl<T, const N: usize> Mask<T, N>
pub(crate) fn splat(value: bool) -> Self
🔬This is a nightly-only experimental API. (
portable_simd
#86656)pub(crate) unsafe fn test_unchecked(&self, lane: usize) -> bool
🔬This is a nightly-only experimental API. (
portable_simd
#86656)pub(crate) unsafe fn set_unchecked(&mut self, lane: usize, value: bool)
🔬This is a nightly-only experimental API. (
portable_simd
#86656)pub(crate) fn to_int(self) -> Simd<T, N>
🔬This is a nightly-only experimental API. (
portable_simd
#86656)pub(crate) unsafe fn from_int_unchecked(value: Simd<T, N>) -> Self
🔬This is a nightly-only experimental API. (
portable_simd
#86656)pub(crate) fn convert<U>(self) -> Mask<U, N>where
U: MaskElement,
🔬This is a nightly-only experimental API. (
portable_simd
#86656)unsafe fn to_bitmask_impl<U: ReverseBits, const M: usize>(self) -> Uwhere
LaneCount<M>: SupportedLaneCount,
🔬This is a nightly-only experimental API. (
portable_simd
#86656)unsafe fn from_bitmask_impl<U: ReverseBits, const M: usize>(bitmask: U) -> Selfwhere
LaneCount<M>: SupportedLaneCount,
🔬This is a nightly-only experimental API. (
portable_simd
#86656)pub(crate) fn to_bitmask_integer(self) -> u64
🔬This is a nightly-only experimental API. (
portable_simd
#86656)pub(crate) fn from_bitmask_integer(bitmask: u64) -> Self
🔬This is a nightly-only experimental API. (
portable_simd
#86656)pub(crate) fn any(self) -> bool
🔬This is a nightly-only experimental API. (
portable_simd
#86656)pub(crate) fn all(self) -> bool
🔬This is a nightly-only experimental API. (
portable_simd
#86656)Trait Implementations§
Source§impl<T, const N: usize> Eq for Mask<T, N>
impl<T, const N: usize> Eq for Mask<T, N>
#[doc(hidden)] fn assert_receiver_is_total_eq(&self)
Source§impl<T, const N: usize> Ord for Mask<T, N>
impl<T, const N: usize> Ord for Mask<T, N>
Source§impl<T, const N: usize> PartialOrd for Mask<T, N>
impl<T, const N: usize> PartialOrd for Mask<T, N>
Source§fn partial_cmp(&self, other: &Self) -> Option<Ordering>
fn partial_cmp(&self, other: &Self) -> Option<Ordering>
Source§#[doc(hidden)] fn __chaining_lt(&self, other: &Rhs) -> ControlFlow<bool>
#[doc(hidden)] fn __chaining_lt(&self, other: &Rhs) -> ControlFlow<bool>
🔬This is a nightly-only experimental API. (
partial_ord_chaining_methods
)If
self == other
, returns ControlFlow::Continue(())
.
Otherwise, returns ControlFlow::Break(self < other)
. Read moreSource§#[doc(hidden)] fn __chaining_le(&self, other: &Rhs) -> ControlFlow<bool>
#[doc(hidden)] fn __chaining_le(&self, other: &Rhs) -> ControlFlow<bool>
🔬This is a nightly-only experimental API. (
partial_ord_chaining_methods
)Same as
__chaining_lt
, but for <=
instead of <
.Source§#[doc(hidden)] fn __chaining_gt(&self, other: &Rhs) -> ControlFlow<bool>
#[doc(hidden)] fn __chaining_gt(&self, other: &Rhs) -> ControlFlow<bool>
🔬This is a nightly-only experimental API. (
partial_ord_chaining_methods
)Same as
__chaining_lt
, but for >
instead of <
.Source§#[doc(hidden)] fn __chaining_ge(&self, other: &Rhs) -> ControlFlow<bool>
#[doc(hidden)] fn __chaining_ge(&self, other: &Rhs) -> ControlFlow<bool>
🔬This is a nightly-only experimental API. (
partial_ord_chaining_methods
)Same as
__chaining_lt
, but for >=
instead of <
.impl<T, const N: usize> Copy for Mask<T, N>
Auto Trait Implementations§
impl<T, const N: usize> Freeze for Mask<T, N>where
T: Freeze,
impl<T, const N: usize> RefUnwindSafe for Mask<T, N>where
T: RefUnwindSafe,
impl<T, const N: usize> Send for Mask<T, N>where
T: Send,
impl<T, const N: usize> Sync for Mask<T, N>where
T: Sync,
impl<T, const N: usize> Unpin for Mask<T, N>where
T: Unpin,
impl<T, const N: usize> UnsafeUnpin for Mask<T, N>where
T: UnsafeUnpin,
impl<T, const N: usize> UnwindSafe for Mask<T, N>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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> SizedTypeProperties for T
impl<T> SizedTypeProperties for T
Source§#[doc(hidden)] const IS_ZST: bool = _
#[doc(hidden)] const IS_ZST: bool = _
🔬This is a nightly-only experimental API. (
sized_type_properties
)Source§#[doc(hidden)] const LAYOUT: Layout = _
#[doc(hidden)] const LAYOUT: Layout = _
🔬This is a nightly-only experimental API. (
sized_type_properties
)Source§#[doc(hidden)] const MAX_SLICE_LEN: usize = _
#[doc(hidden)] const MAX_SLICE_LEN: usize = _
🔬This is a nightly-only experimental API. (
sized_type_properties
)The largest safe length for a
[Self]
. Read more