Struct heron::rapier_plugin::rapier2d::parry::simba::simd::WideBoolF32x4 [−]
#[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
impl BitAnd<WideBoolF32x4> for WideBoolF32x4
impl BitAnd<WideBoolF32x4> for WideBoolF32x4
type Output = WideBoolF32x4
type Output = WideBoolF32x4
The resulting type after applying the &
operator.
pub fn bitand(self, rhs: WideBoolF32x4) -> WideBoolF32x4
pub fn bitand(self, rhs: WideBoolF32x4) -> WideBoolF32x4
Performs the &
operation. Read more
impl BitOr<WideBoolF32x4> for WideBoolF32x4
impl BitOr<WideBoolF32x4> for WideBoolF32x4
type Output = WideBoolF32x4
type Output = WideBoolF32x4
The resulting type after applying the |
operator.
pub fn bitor(self, rhs: WideBoolF32x4) -> WideBoolF32x4
pub fn bitor(self, rhs: WideBoolF32x4) -> WideBoolF32x4
Performs the |
operation. Read more
impl BitXor<WideBoolF32x4> for WideBoolF32x4
impl BitXor<WideBoolF32x4> for WideBoolF32x4
type Output = WideBoolF32x4
type Output = WideBoolF32x4
The resulting type after applying the ^
operator.
pub fn bitxor(self, rhs: WideBoolF32x4) -> WideBoolF32x4
pub fn bitxor(self, rhs: WideBoolF32x4) -> WideBoolF32x4
Performs the ^
operation. Read more
impl Clone for WideBoolF32x4
impl Clone for WideBoolF32x4
pub fn clone(&self) -> WideBoolF32x4
pub fn clone(&self) -> WideBoolF32x4
Returns a copy of the value. Read more
Performs copy-assignment from source
. Read more
impl Debug for WideBoolF32x4
impl Debug for WideBoolF32x4
impl From<[bool; 4]> for WideBoolF32x4
impl From<[bool; 4]> for WideBoolF32x4
pub fn from(vals: [bool; 4]) -> WideBoolF32x4
pub fn from(vals: [bool; 4]) -> WideBoolF32x4
Performs the conversion.
impl Not for WideBoolF32x4
impl Not for WideBoolF32x4
type Output = WideBoolF32x4
type Output = WideBoolF32x4
The resulting type after applying the !
operator.
pub fn not(self) -> WideBoolF32x4
pub fn not(self) -> WideBoolF32x4
Performs the unary !
operation. Read more
impl PartialEq<WideBoolF32x4> for WideBoolF32x4
impl PartialEq<WideBoolF32x4> for WideBoolF32x4
impl SimdBool for WideBoolF32x4
impl SimdBool for WideBoolF32x4
A bit mask representing the boolean state of each lanes of self
. Read more
pub fn if_else<Res>(
self,
if_value: impl FnOnce() -> Res,
else_value: impl FnOnce() -> Res
) -> Res where
Res: SimdValue<SimdBool = WideBoolF32x4>,
pub fn if_else<Res>(
self,
if_value: impl FnOnce() -> Res,
else_value: impl FnOnce() -> Res
) -> Res where
Res: SimdValue<SimdBool = WideBoolF32x4>,
Merges the value of if_value()
and else_value()
depending on the lanes of self
. Read more
pub fn if_else2<Res>(
self,
if_value: impl FnOnce() -> Res,
else_if: (impl FnOnce() -> WideBoolF32x4, impl FnOnce() -> Res),
else_value: impl FnOnce() -> Res
) -> Res where
Res: SimdValue<SimdBool = WideBoolF32x4>,
pub fn if_else2<Res>(
self,
if_value: impl FnOnce() -> Res,
else_if: (impl FnOnce() -> WideBoolF32x4, impl FnOnce() -> Res),
else_value: impl FnOnce() -> Res
) -> Res where
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 more
pub 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
) -> Res where
Res: SimdValue<SimdBool = WideBoolF32x4>,
pub 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
) -> Res where
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 more
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
.
pub fn splat(val: bool) -> WideBoolF32x4
pub fn splat(val: bool) -> WideBoolF32x4
Initializes an SIMD value with each lanes set to val
.
pub fn extract(&self, i: usize) -> <WideBoolF32x4 as SimdValue>::Element
pub fn extract(&self, i: usize) -> <WideBoolF32x4 as SimdValue>::Element
Extracts the i-th lane of self
. Read more
pub unsafe fn extract_unchecked(
&self,
i: usize
) -> <WideBoolF32x4 as SimdValue>::Element
pub unsafe fn extract_unchecked(
&self,
i: usize
) -> <WideBoolF32x4 as SimdValue>::Element
Extracts the i-th lane of self
without bound-checking.
pub fn replace(&mut self, i: usize, val: <WideBoolF32x4 as SimdValue>::Element)
pub fn replace(&mut self, i: usize, val: <WideBoolF32x4 as SimdValue>::Element)
Replaces the i-th lane of self
by val
. Read more
pub unsafe fn replace_unchecked(
&mut self,
i: usize,
val: <WideBoolF32x4 as SimdValue>::Element
)
pub 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.
pub fn select(
self,
cond: <WideBoolF32x4 as SimdValue>::SimdBool,
other: WideBoolF32x4
) -> WideBoolF32x4
pub fn select(
self,
cond: <WideBoolF32x4 as SimdValue>::SimdBool,
other: WideBoolF32x4
) -> WideBoolF32x4
Merges self
and other
depending on the lanes of cond
. Read more
Applies a function to each lane of self
. Read more
impl SubsetOf<WideBoolF32x4> for WideBoolF32x4
impl SubsetOf<WideBoolF32x4> for WideBoolF32x4
pub fn to_superset(&self) -> WideBoolF32x4
pub fn to_superset(&self) -> WideBoolF32x4
The inclusion map: converts self
to the equivalent element of its superset.
pub fn from_superset(element: &WideBoolF32x4) -> Option<WideBoolF32x4>
pub fn from_superset(element: &WideBoolF32x4) -> Option<WideBoolF32x4>
The inverse inclusion map: attempts to construct self
from the equivalent element of its
superset. Read more
pub fn from_superset_unchecked(element: &WideBoolF32x4) -> WideBoolF32x4
pub fn from_superset_unchecked(element: &WideBoolF32x4) -> WideBoolF32x4
Use with care! Same as self.to_superset
but without any property checks. Always succeeds.
pub fn is_in_subset(&WideBoolF32x4) -> bool
pub 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
Mutably borrows from an owned value. Read more
impl<T> Downcast for T where
T: Any,
impl<T> Downcast for T where
T: Any,
Convert Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
. Read more
pub fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
pub fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
Convert Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
. Read more
Convert &Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s. Read more
pub fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
pub fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert &mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s. Read more
impl<T> Pointable for T
impl<T> Pointable for T
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
The inverse inclusion map: attempts to construct self
from the equivalent element of its
superset. Read more
pub fn is_in_subset(&self) -> bool
pub fn is_in_subset(&self) -> bool
Checks if self
is actually part of its subset T
(and can be converted to it).
pub fn to_subset_unchecked(&self) -> SS
pub fn to_subset_unchecked(&self) -> SS
Use with care! Same as self.to_subset
but without any property checks. Always succeeds.
pub fn from_subset(element: &SS) -> SP
pub fn from_subset(element: &SS) -> SP
The inclusion map: converts self
to the equivalent element of its superset.
pub fn clone_type_data(&self) -> Box<dyn TypeData + 'static, Global>
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more