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

source

pub fn splat(value: bool) -> Self

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

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

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

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

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

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

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

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

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

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

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

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)
source

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)
source

pub fn any(self) -> bool

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

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,

§

type Output = Mask<T, LANES>

The resulting type after applying the & operator.
source§

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

Performs the & operation. Read more
source§

impl<T, const LANES: usize> BitOr<Mask<T, LANES>> for Mask<T, LANES>where T: MaskElement, LaneCount<LANES>: SupportedLaneCount,

§

type Output = Mask<T, LANES>

The resulting type after applying the | operator.
source§

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

Performs the | operation. Read more
source§

impl<T, const LANES: usize> BitXor<Mask<T, LANES>> for Mask<T, LANES>where T: MaskElement, LaneCount<LANES>: SupportedLaneCount,

§

type Output = Mask<T, LANES>

The resulting type after applying the ^ operator.
source§

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

Performs the ^ operation. Read more
source§

impl<T, const LANES: usize> Clone for Mask<T, LANES>where T: MaskElement, LaneCount<LANES>: SupportedLaneCount,

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 LANES: usize> Eq for Mask<T, LANES>where T: MaskElement + Eq, LaneCount<LANES>: SupportedLaneCount,

source§

impl<T, const LANES: usize> From<Mask<T, LANES>> for Simd<T, LANES>where T: MaskElement, LaneCount<LANES>: SupportedLaneCount,

source§

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

Converts to this type from the input type.
source§

impl<T, const LANES: usize> Not for Mask<T, LANES>where T: MaskElement, LaneCount<LANES>: SupportedLaneCount,

§

type Output = Mask<T, LANES>

The resulting type after applying the ! operator.
source§

fn not(self) -> Self::Output

Performs the unary ! operation. Read more
source§

impl<T, const LANES: usize> Ord for Mask<T, LANES>where T: MaskElement + Ord, LaneCount<LANES>: SupportedLaneCount,

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) -> Selfwhere Self: Sized,

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

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

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

fn clamp(self, min: Self, max: Self) -> Selfwhere Self: Sized + PartialOrd,

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

impl<T, const LANES: usize> PartialEq<Mask<T, LANES>> for Mask<T, LANES>where T: MaskElement + PartialEq, LaneCount<LANES>: SupportedLaneCount,

source§

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

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

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

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl<T, const LANES: usize> PartialOrd<Mask<T, LANES>> for Mask<T, LANES>where T: MaskElement + PartialOrd, LaneCount<LANES>: SupportedLaneCount,

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

This method 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

This method 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

This method 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

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

source§

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

Mutably borrows from an owned value. 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 Twhere 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§

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§

impl<T> SpecOptionPartialEq for Twhere T: PartialEq<T>,

source§

default fn eq(l: &Option<T>, r: &Option<T>) -> bool

🔬This is a nightly-only experimental API. (spec_option_partial_eq)
source§

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

§

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 Twhere U: TryFrom<T>,

§

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.