Skip to main content

Mask

Struct Mask 

Source
pub struct Mask<T, A = Scalar128>
where A: Arch,
{ /* private fields */ }

Implementations§

Source§

impl<T, A> Mask<T, A>
where T: SimdElement, A: Arch,

Source

pub fn raw_cast<S>(self) -> Mask<S, A>
where S: SimdElement,

Source

pub fn all_false(self) -> bool

Source

pub fn first_n_true(n: u32) -> Mask<T, A>

Source

pub fn first_n_false(n: u32) -> Mask<T, A>

Source§

impl<T, A> Mask<T, A>
where T: SimdElement, A: Arch,

Source

pub fn andnot(self, rhs: Mask<T, A>) -> Mask<T, A>

Source

pub fn select( self, true_values: Simd<T, A>, false_values: Simd<T, A>, ) -> Simd<T, A>

Source§

impl<T, A> Mask<T, A>
where T: SimdElement, A: Arch,

Source

pub fn to_bits(self) -> u64

Source

pub fn from_bits(bitmask: u64) -> Mask<T, A>

Trait Implementations§

Source§

impl<T, A> BitAnd for Mask<T, A>
where T: SimdElement, A: Arch,

Source§

type Output = Mask<T, A>

The resulting type after applying the & operator.
Source§

fn bitand(self, rhs: Mask<T, A>) -> Mask<T, A>

Performs the & operation. Read more
Source§

impl<T, A> BitOr for Mask<T, A>
where T: SimdElement, A: Arch,

Source§

type Output = Mask<T, A>

The resulting type after applying the | operator.
Source§

fn bitor(self, rhs: Mask<T, A>) -> Mask<T, A>

Performs the | operation. Read more
Source§

impl<T, A> BitXor for Mask<T, A>
where T: SimdElement, A: Arch,

Source§

type Output = Mask<T, A>

The resulting type after applying the ^ operator.
Source§

fn bitxor(self, rhs: Mask<T, A>) -> Mask<T, A>

Performs the ^ operation. Read more
Source§

impl<T, A> Clone for Mask<T, A>
where T: Clone, A: Clone + Arch, <A as Arch>::Mask: Clone,

Source§

fn clone(&self) -> Mask<T, A>

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

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

Performs copy-assignment from source. Read more
Source§

impl<T, A> Copy for Mask<T, A>
where T: Copy, A: Copy + Arch, <A as Arch>::Mask: Copy,

Source§

impl<T, A> Not for Mask<T, A>
where T: SimdElement, A: Arch,

Source§

type Output = Mask<T, A>

The resulting type after applying the ! operator.
Source§

fn not(self) -> Mask<T, A>

Performs the unary ! operation. Read more

Auto Trait Implementations§

§

impl<T, A> Freeze for Mask<T, A>
where <A as Arch>::Mask: Freeze, PhantomData<T>: Freeze,

§

impl<T, A> RefUnwindSafe for Mask<T, A>

§

impl<T, A> Send for Mask<T, A>
where <A as Arch>::Mask: Send, PhantomData<T>: Send,

§

impl<T, A> Sync for Mask<T, A>
where <A as Arch>::Mask: Sync, PhantomData<T>: Sync,

§

impl<T, A> Unpin for Mask<T, A>
where <A as Arch>::Mask: Unpin, PhantomData<T>: Unpin,

§

impl<T, A> UnsafeUnpin for Mask<T, A>

§

impl<T, A> UnwindSafe for Mask<T, A>

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)
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> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

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

Source§

type Error = !

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

fn try_from(value: U) -> Result<T, !>

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.