Struct na::simd::WideBoolF32x4
source · #[repr(transparent)]pub struct WideBoolF32x4(pub f32x4);
Expand description
An SIMD boolean structure associated to wide::f32x4
that implements all the relevant traits from simba
.
This is needed to overcome the orphan rules.
Tuple Fields§
§0: f32x4
Trait Implementations§
source§impl BitAnd<WideBoolF32x4> for WideBoolF32x4
impl BitAnd<WideBoolF32x4> for WideBoolF32x4
§type Output = WideBoolF32x4
type Output = WideBoolF32x4
The resulting type after applying the
&
operator.source§fn bitand(self, rhs: WideBoolF32x4) -> WideBoolF32x4
fn bitand(self, rhs: WideBoolF32x4) -> WideBoolF32x4
Performs the
&
operation. Read moresource§impl BitOr<WideBoolF32x4> for WideBoolF32x4
impl BitOr<WideBoolF32x4> for WideBoolF32x4
§type Output = WideBoolF32x4
type Output = WideBoolF32x4
The resulting type after applying the
|
operator.source§fn bitor(self, rhs: WideBoolF32x4) -> WideBoolF32x4
fn bitor(self, rhs: WideBoolF32x4) -> WideBoolF32x4
Performs the
|
operation. Read moresource§impl BitXor<WideBoolF32x4> for WideBoolF32x4
impl BitXor<WideBoolF32x4> for WideBoolF32x4
§type Output = WideBoolF32x4
type Output = WideBoolF32x4
The resulting type after applying the
^
operator.source§fn bitxor(self, rhs: WideBoolF32x4) -> WideBoolF32x4
fn bitxor(self, rhs: WideBoolF32x4) -> WideBoolF32x4
Performs the
^
operation. Read moresource§impl Clone for WideBoolF32x4
impl Clone for WideBoolF32x4
source§fn clone(&self) -> WideBoolF32x4
fn clone(&self) -> WideBoolF32x4
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for WideBoolF32x4
impl Debug for WideBoolF32x4
source§impl Not for WideBoolF32x4
impl Not for WideBoolF32x4
§type Output = WideBoolF32x4
type Output = WideBoolF32x4
The resulting type after applying the
!
operator.source§fn not(self) -> WideBoolF32x4
fn not(self) -> WideBoolF32x4
Performs the unary
!
operation. Read moresource§impl PartialEq<WideBoolF32x4> for WideBoolF32x4
impl PartialEq<WideBoolF32x4> for WideBoolF32x4
source§fn eq(&self, rhs: &WideBoolF32x4) -> bool
fn eq(&self, rhs: &WideBoolF32x4) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl SimdBool for WideBoolF32x4
impl SimdBool for WideBoolF32x4
source§fn bitmask(self) -> u64
fn bitmask(self) -> u64
A bit mask representing the boolean state of each lanes of
self
. Read moresource§fn if_else<Res>(
self,
if_value: impl FnOnce() -> Res,
else_value: impl FnOnce() -> Res
) -> Reswhere
Res: SimdValue<SimdBool = WideBoolF32x4>,
fn if_else<Res>( self, if_value: impl FnOnce() -> Res, else_value: impl FnOnce() -> Res ) -> Reswhere Res: SimdValue<SimdBool = WideBoolF32x4>,
source§fn if_else2<Res>(
self,
if_value: impl FnOnce() -> Res,
else_if: (impl FnOnce() -> WideBoolF32x4, impl FnOnce() -> Res),
else_value: impl FnOnce() -> Res
) -> Reswhere
Res: SimdValue<SimdBool = WideBoolF32x4>,
fn if_else2<Res>( self, if_value: impl FnOnce() -> Res, else_if: (impl FnOnce() -> WideBoolF32x4, impl FnOnce() -> Res), else_value: impl FnOnce() -> Res ) -> Reswhere Res: SimdValue<SimdBool = WideBoolF32x4>,
Merges the value of
if_value()
and else_if.1()
and else_value()
depending on the lanes of self
and else_if.0()
. Read moresource§fn if_else3<Res>(
self,
if_value: impl FnOnce() -> Res,
else_if: (impl FnOnce() -> WideBoolF32x4, impl FnOnce() -> Res),
else_else_if: (impl FnOnce() -> WideBoolF32x4, impl FnOnce() -> Res),
else_value: impl FnOnce() -> Res
) -> Reswhere
Res: SimdValue<SimdBool = WideBoolF32x4>,
fn if_else3<Res>( self, if_value: impl FnOnce() -> Res, else_if: (impl FnOnce() -> WideBoolF32x4, impl FnOnce() -> Res), else_else_if: (impl FnOnce() -> WideBoolF32x4, impl FnOnce() -> Res), else_value: impl FnOnce() -> Res ) -> Reswhere Res: SimdValue<SimdBool = WideBoolF32x4>,
Merges the value of
if_value()
and else_if.1()
and else_else_if.1()
and else_value()
depending on the lanes of self
and else_if.0()
and else_else_if.0()
. Read moresource§impl SimdValue for WideBoolF32x4
impl SimdValue for WideBoolF32x4
§type SimdBool = WideBoolF32x4
type SimdBool = WideBoolF32x4
Type of the result of comparing two SIMD values like
self
.source§fn splat(val: bool) -> WideBoolF32x4
fn splat(val: bool) -> WideBoolF32x4
Initializes an SIMD value with each lanes set to
val
.source§fn extract(&self, i: usize) -> <WideBoolF32x4 as SimdValue>::Element
fn extract(&self, i: usize) -> <WideBoolF32x4 as SimdValue>::Element
Extracts the i-th lane of
self
. Read moresource§unsafe fn extract_unchecked(
&self,
i: usize
) -> <WideBoolF32x4 as SimdValue>::Element
unsafe fn extract_unchecked( &self, i: usize ) -> <WideBoolF32x4 as SimdValue>::Element
Extracts the i-th lane of
self
without bound-checking.source§unsafe fn replace_unchecked(
&mut self,
i: usize,
val: <WideBoolF32x4 as SimdValue>::Element
)
unsafe fn replace_unchecked( &mut self, i: usize, val: <WideBoolF32x4 as SimdValue>::Element )
Replaces the i-th lane of
self
by val
without bound-checking.source§fn select(
self,
cond: <WideBoolF32x4 as SimdValue>::SimdBool,
other: WideBoolF32x4
) -> WideBoolF32x4
fn select( self, cond: <WideBoolF32x4 as SimdValue>::SimdBool, other: WideBoolF32x4 ) -> WideBoolF32x4
source§impl SubsetOf<WideBoolF32x4> for WideBoolF32x4
impl SubsetOf<WideBoolF32x4> for WideBoolF32x4
source§fn to_superset(&self) -> WideBoolF32x4
fn to_superset(&self) -> WideBoolF32x4
The inclusion map: converts
self
to the equivalent element of its superset.source§fn from_superset(element: &WideBoolF32x4) -> Option<WideBoolF32x4>
fn from_superset(element: &WideBoolF32x4) -> Option<WideBoolF32x4>
The inverse inclusion map: attempts to construct
self
from the equivalent element of its
superset. Read moresource§fn from_superset_unchecked(element: &WideBoolF32x4) -> WideBoolF32x4
fn from_superset_unchecked(element: &WideBoolF32x4) -> WideBoolF32x4
Use with care! Same as
self.to_superset
but without any property checks. Always succeeds.source§fn is_in_subset(_: &WideBoolF32x4) -> bool
fn is_in_subset(_: &WideBoolF32x4) -> bool
Checks if
element
is actually part of the subset Self
(and can be converted to it).impl Copy for WideBoolF32x4
impl PrimitiveSimdValue for WideBoolF32x4
Auto Trait Implementations§
impl RefUnwindSafe for WideBoolF32x4
impl Send for WideBoolF32x4
impl Sync for WideBoolF32x4
impl Unpin for WideBoolF32x4
impl UnwindSafe for WideBoolF32x4
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<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere SS: SubsetOf<SP>,
source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self
from the equivalent element of its
superset. Read moresource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self
is actually part of its subset T
(and can be converted to it).source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset
but without any property checks. Always succeeds.source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self
to the equivalent element of its superset.