Struct Mask

Source
#[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>

Source

pub(crate) fn splat(value: bool) -> Self

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

pub(crate) unsafe fn test_unchecked(&self, lane: usize) -> bool

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

pub(crate) unsafe fn set_unchecked(&mut self, lane: usize, value: bool)

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

pub(crate) fn to_int(self) -> Simd<T, N>

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

pub(crate) unsafe fn from_int_unchecked(value: Simd<T, N>) -> Self

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

pub(crate) fn convert<U>(self) -> Mask<U, N>
where U: MaskElement,

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

unsafe fn to_bitmask_impl<U: ReverseBits, const M: usize>(self) -> U

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

unsafe fn from_bitmask_impl<U: ReverseBits, const M: usize>(bitmask: U) -> Self

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

pub(crate) fn to_bitmask_integer(self) -> u64

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

pub(crate) fn from_bitmask_integer(bitmask: u64) -> Self

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

pub(crate) fn any(self) -> bool

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

pub(crate) fn all(self) -> bool

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

Trait Implementations§

Source§

impl<T, const N: usize> BitAnd for Mask<T, N>

Source§

type Output = Mask<T, N>

The resulting type after applying the & operator.
Source§

fn bitand(self, rhs: Self) -> Self

Performs the & operation. Read more
Source§

impl<T, const N: usize> BitOr for Mask<T, N>

Source§

type Output = Mask<T, N>

The resulting type after applying the | operator.
Source§

fn bitor(self, rhs: Self) -> Self

Performs the | operation. Read more
Source§

impl<T, const N: usize> BitXor for Mask<T, N>

Source§

type Output = Mask<T, N>

The resulting type after applying the ^ operator.
Source§

fn bitxor(self, rhs: Self) -> Self

Performs the ^ operation. Read more
Source§

impl<T, const N: usize> Clone for Mask<T, N>

Source§

fn clone(&self) -> Self

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<T, const N: usize> Eq for Mask<T, N>

1.0.0 · Source§

#[doc(hidden)] fn assert_receiver_is_total_eq(&self)

Source§

impl<T, const N: usize> From<Mask<T, N>> for Simd<T, N>

Source§

fn from(value: Mask<T, N>) -> Self

Converts to this type from the input type.
Source§

impl<T, const N: usize> Not for Mask<T, N>

Source§

type Output = Mask<T, N>

The resulting type after applying the ! operator.
Source§

fn not(self) -> Self::Output

Performs the unary ! operation. Read more
Source§

impl<T, const N: usize> Ord for Mask<T, N>

Source§

fn cmp(&self, other: &Self) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · Source§

fn max(self, other: Self) -> Self
where Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · Source§

fn min(self, other: Self) -> Self
where Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 · Source§

fn clamp(self, min: Self, max: Self) -> Self
where Self: Sized,

Restrict a value to a certain interval. Read more
Source§

impl<T, const N: usize> PartialEq for Mask<T, N>

Source§

fn eq(&self, other: &Self) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl<T, const N: usize> PartialOrd for Mask<T, N>

Source§

fn partial_cmp(&self, other: &Self) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · Source§

fn lt(&self, other: &Rhs) -> bool

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · Source§

fn le(&self, other: &Rhs) -> bool

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · Source§

fn gt(&self, other: &Rhs) -> bool

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · Source§

fn ge(&self, other: &Rhs) -> bool

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

#[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 more
Source§

#[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>

🔬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>

🔬This is a nightly-only experimental API. (partial_ord_chaining_methods)
Same as __chaining_lt, but for >= instead of <.
Source§

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> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit #126799)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> SizedTypeProperties for T

Source§

#[doc(hidden)] const IS_ZST: bool = _

🔬This is a nightly-only experimental API. (sized_type_properties)
true if this type requires no storage. false if its size is greater than zero. Read more
Source§

#[doc(hidden)] const LAYOUT: Layout = _

🔬This is a nightly-only experimental API. (sized_type_properties)
Source§

#[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
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> NonDrop for T
where T: Copy,