#[repr(transparent)]pub struct SimdBool(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: f32x4Implementations§
Trait Implementations§
Source§impl BitAnd for WideBoolF32x4
impl BitAnd for WideBoolF32x4
Source§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 for WideBoolF32x4
impl BitOr for WideBoolF32x4
Source§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 for WideBoolF32x4
impl BitXor for WideBoolF32x4
Source§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 duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for WideBoolF32x4
Source§impl Debug for WideBoolF32x4
impl Debug for WideBoolF32x4
Source§impl Default for WideBoolF32x4
impl Default for WideBoolF32x4
Source§fn default() -> WideBoolF32x4
fn default() -> WideBoolF32x4
Returns the “default value” for a type. Read more
Source§impl Not for WideBoolF32x4
impl Not for WideBoolF32x4
Source§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 for WideBoolF32x4
impl PartialEq for WideBoolF32x4
impl PrimitiveSimdValue for WideBoolF32x4
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
Source§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. Read moreSource§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, )
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).Auto Trait Implementations§
impl Freeze for WideBoolF32x4
impl RefUnwindSafe for WideBoolF32x4
impl Send for WideBoolF32x4
impl Sync for WideBoolF32x4
impl Unpin for WideBoolF32x4
impl UnsafeUnpin 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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Converts
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>, which can then be
downcast into Box<dyn ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Converts
Rc<Trait> (where Trait: Downcast) to Rc<Any>, which can then be further
downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Converts
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Converts
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> DowncastSend for T
impl<T> DowncastSend for T
Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§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.