Struct heron::rapier_plugin::rapier2d::parry::simba::simd::WideF32x4 [−]
#[repr(transparent)]pub struct WideF32x4(pub f32x4);
Expand description
A wrapper type of wide::f32x4
that implements all the relevant traits from num
and simba
.
This is needed to overcome the orphan rules.
Tuple Fields
0: f32x4
Trait Implementations
pub fn add_assign(&mut self, rhs: WideF32x4)
pub fn add_assign(&mut self, rhs: WideF32x4)
Performs the +=
operation. Read more
pub fn div_assign(&mut self, rhs: WideF32x4)
pub fn div_assign(&mut self, rhs: WideF32x4)
Performs the /=
operation. Read more
impl FromPrimitive for WideF32x4
impl FromPrimitive for WideF32x4
Converts an i64
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned. Read more
Converts an u64
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned. Read more
pub fn from_isize(n: isize) -> Option<WideF32x4>
pub fn from_isize(n: isize) -> Option<WideF32x4>
Converts an isize
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned. Read more
Converts an i8
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned. Read more
Converts an i16
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned. Read more
Converts an i32
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned. Read more
pub fn from_usize(n: usize) -> Option<WideF32x4>
pub fn from_usize(n: usize) -> Option<WideF32x4>
Converts a usize
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned. Read more
Converts an u8
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned. Read more
Converts an u16
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned. Read more
Converts an u32
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned. Read more
Converts a f32
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned. Read more
Converts a f64
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned. Read more
Converts an i128
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned. Read more
pub fn mul_assign(&mut self, rhs: WideF32x4)
pub fn mul_assign(&mut self, rhs: WideF32x4)
Performs the *=
operation. Read more
type FromStrRadixErr = <f32 as Num>::FromStrRadixErr
pub fn from_str_radix(
str: &str,
radix: u32
) -> Result<WideF32x4, <WideF32x4 as Num>::FromStrRadixErr>
pub fn from_str_radix(
str: &str,
radix: u32
) -> Result<WideF32x4, <WideF32x4 as Num>::FromStrRadixErr>
Convert from a string and radix (typically 2..=36
). Read more
pub fn rem_assign(&mut self, rhs: WideF32x4)
pub fn rem_assign(&mut self, rhs: WideF32x4)
Performs the %=
operation. Read more
impl SimdComplexField for WideF32x4
impl SimdComplexField for WideF32x4
type SimdRealField = WideF32x4
type SimdRealField = WideF32x4
Type of the coefficients of a complex number.
pub fn simd_horizontal_sum(self) -> <WideF32x4 as SimdValue>::Element
pub fn simd_horizontal_sum(self) -> <WideF32x4 as SimdValue>::Element
Computes the sum of all the lanes of self
.
pub fn simd_horizontal_product(self) -> <WideF32x4 as SimdValue>::Element
pub fn simd_horizontal_product(self) -> <WideF32x4 as SimdValue>::Element
Computes the product of all the lanes of self
.
pub fn from_simd_real(
re: <WideF32x4 as SimdComplexField>::SimdRealField
) -> WideF32x4
pub fn from_simd_real(
re: <WideF32x4 as SimdComplexField>::SimdRealField
) -> WideF32x4
Builds a pure-real complex number from the given value.
pub fn simd_real(self) -> <WideF32x4 as SimdComplexField>::SimdRealField
pub fn simd_real(self) -> <WideF32x4 as SimdComplexField>::SimdRealField
The real part of this complex number.
pub fn simd_imaginary(self) -> <WideF32x4 as SimdComplexField>::SimdRealField
pub fn simd_imaginary(self) -> <WideF32x4 as SimdComplexField>::SimdRealField
The imaginary part of this complex number.
pub fn simd_norm1(self) -> <WideF32x4 as SimdComplexField>::SimdRealField
pub fn simd_norm1(self) -> <WideF32x4 as SimdComplexField>::SimdRealField
The sum of the absolute value of this complex number’s real and imaginary part.
pub fn simd_modulus(self) -> <WideF32x4 as SimdComplexField>::SimdRealField
pub fn simd_modulus(self) -> <WideF32x4 as SimdComplexField>::SimdRealField
The modulus of this complex number.
pub fn simd_modulus_squared(
self
) -> <WideF32x4 as SimdComplexField>::SimdRealField
pub fn simd_modulus_squared(
self
) -> <WideF32x4 as SimdComplexField>::SimdRealField
The squared modulus of this complex number.
pub fn simd_argument(self) -> <WideF32x4 as SimdComplexField>::SimdRealField
pub fn simd_argument(self) -> <WideF32x4 as SimdComplexField>::SimdRealField
The argument of this complex number.
pub fn simd_to_exp(
self
) -> (<WideF32x4 as SimdComplexField>::SimdRealField, WideF32x4)
pub fn simd_to_exp(
self
) -> (<WideF32x4 as SimdComplexField>::SimdRealField, WideF32x4)
The exponential form of this complex number: (modulus, e^{i arg})
pub fn simd_recip(self) -> WideF32x4
pub fn simd_conjugate(self) -> WideF32x4
pub fn simd_scale(
self,
factor: <WideF32x4 as SimdComplexField>::SimdRealField
) -> WideF32x4
pub fn simd_scale(
self,
factor: <WideF32x4 as SimdComplexField>::SimdRealField
) -> WideF32x4
Multiplies this complex number by factor
.
pub fn simd_unscale(
self,
factor: <WideF32x4 as SimdComplexField>::SimdRealField
) -> WideF32x4
pub fn simd_unscale(
self,
factor: <WideF32x4 as SimdComplexField>::SimdRealField
) -> WideF32x4
Divides this complex number by factor
.
pub fn simd_floor(self) -> WideF32x4
pub fn simd_round(self) -> WideF32x4
pub fn simd_trunc(self) -> WideF32x4
pub fn simd_fract(self) -> WideF32x4
The absolute value of this complex number: self / self.signum()
. Read more
pub fn simd_signum(self) -> WideF32x4
pub fn simd_signum(self) -> WideF32x4
The exponential part of this complex number: self / self.modulus()
pub fn simd_mul_add(self, a: WideF32x4, b: WideF32x4) -> WideF32x4
pub fn simd_exp_m1(self) -> WideF32x4
pub fn simd_ln_1p(self) -> WideF32x4
pub fn simd_log10(self) -> WideF32x4
pub fn simd_hypot(
self,
other: WideF32x4
) -> <WideF32x4 as SimdComplexField>::SimdRealField
pub fn simd_hypot(
self,
other: WideF32x4
) -> <WideF32x4 as SimdComplexField>::SimdRealField
Computes (self.conjugate() * self + other.conjugate() * other).sqrt()
pub fn simd_sin_cos(self) -> (WideF32x4, WideF32x4)
pub fn simd_asinh(self) -> WideF32x4
pub fn simd_acosh(self) -> WideF32x4
pub fn simd_atanh(self) -> WideF32x4
fn simd_to_polar(self) -> (Self::SimdRealField, Self::SimdRealField)
fn simd_to_polar(self) -> (Self::SimdRealField, Self::SimdRealField)
The polar form of this complex number: (modulus, arg)
fn simd_sinh_cosh(self) -> (Self, Self)
fn simd_sinc(self) -> Self
fn simd_sinc(self) -> Self
Cardinal sine
fn simd_sinhc(self) -> Self
fn simd_cosc(self) -> Self
fn simd_cosc(self) -> Self
Cardinal cos
fn simd_coshc(self) -> Self
impl SimdPartialOrd for WideF32x4
impl SimdPartialOrd for WideF32x4
Lanewise greater than >
comparison.
Lanewise less than <
comparison.
Lanewise greater or equal >=
comparison.
Lanewise less or equal <=
comparison.
Lanewise equal ==
comparison.
Lanewise not equal !=
comparison.
pub fn simd_clamp(self, min: WideF32x4, max: WideF32x4) -> WideF32x4
pub fn simd_clamp(self, min: WideF32x4, max: WideF32x4) -> WideF32x4
Clamps each lane of self
between the corresponding lane of min
and max
.
pub fn simd_horizontal_min(self) -> <WideF32x4 as SimdValue>::Element
pub fn simd_horizontal_min(self) -> <WideF32x4 as SimdValue>::Element
The min value among all lanes of self
.
pub fn simd_horizontal_max(self) -> <WideF32x4 as SimdValue>::Element
pub fn simd_horizontal_max(self) -> <WideF32x4 as SimdValue>::Element
The max value among all lanes of self
.
impl SimdRealField for WideF32x4
impl SimdRealField for WideF32x4
pub fn simd_atan2(self, other: WideF32x4) -> WideF32x4
pub fn simd_copysign(self, sign: WideF32x4) -> WideF32x4
pub fn simd_copysign(self, sign: WideF32x4) -> WideF32x4
Copies the sign of sign
to self
. Read more
pub fn simd_default_epsilon() -> WideF32x4
pub fn simd_two_pi() -> WideF32x4
pub fn simd_frac_pi_2() -> WideF32x4
pub fn simd_frac_pi_3() -> WideF32x4
pub fn simd_frac_pi_4() -> WideF32x4
pub fn simd_frac_pi_6() -> WideF32x4
pub fn simd_frac_pi_8() -> WideF32x4
pub fn simd_frac_1_pi() -> WideF32x4
pub fn simd_frac_2_pi() -> WideF32x4
pub fn simd_frac_2_sqrt_pi() -> WideF32x4
pub fn simd_log2_e() -> WideF32x4
pub fn simd_log10_e() -> WideF32x4
pub fn simd_ln_10() -> WideF32x4
impl SimdSigned for WideF32x4
impl SimdSigned for WideF32x4
pub fn simd_abs_sub(&self, other: &WideF32x4) -> WideF32x4
pub fn simd_abs_sub(&self, other: &WideF32x4) -> WideF32x4
The absolute difference of each lane of self
. Read more
pub fn simd_signum(&self) -> WideF32x4
pub fn simd_signum(&self) -> WideF32x4
The signum of each lane of Self
.
pub fn is_simd_positive(&self) -> <WideF32x4 as SimdValue>::SimdBool
pub fn is_simd_positive(&self) -> <WideF32x4 as SimdValue>::SimdBool
Tests which lane is positive.
pub fn is_simd_negative(&self) -> <WideF32x4 as SimdValue>::SimdBool
pub fn is_simd_negative(&self) -> <WideF32x4 as SimdValue>::SimdBool
Tests which lane is negative.
type SimdBool = WideBoolF32x4
type SimdBool = WideBoolF32x4
Type of the result of comparing two SIMD values like self
.
Initializes an SIMD value with each lanes set to val
.
Extracts the i-th lane of self
. Read more
pub unsafe fn extract_unchecked(
&self,
i: usize
) -> <WideF32x4 as SimdValue>::Element
pub unsafe fn extract_unchecked(
&self,
i: usize
) -> <WideF32x4 as SimdValue>::Element
Extracts the i-th lane of self
without bound-checking.
Replaces the i-th lane of self
by val
. Read more
pub unsafe fn replace_unchecked(
&mut self,
i: usize,
val: <WideF32x4 as SimdValue>::Element
)
pub unsafe fn replace_unchecked(
&mut self,
i: usize,
val: <WideF32x4 as SimdValue>::Element
)
Replaces the i-th lane of self
by val
without bound-checking.
Merges self
and other
depending on the lanes of cond
. Read more
Applies a function to each lane of self
. Read more
pub fn sub_assign(&mut self, rhs: WideF32x4)
pub fn sub_assign(&mut self, rhs: WideF32x4)
Performs the -=
operation. Read more
pub fn to_superset(&self) -> WideF32x4
pub fn to_superset(&self) -> WideF32x4
The inclusion map: converts self
to the equivalent element of its superset.
pub fn from_superset_unchecked(element: &WideF32x4) -> u64
pub fn from_superset_unchecked(element: &WideF32x4) -> u64
Use with care! Same as self.to_superset
but without any property checks. Always succeeds.
pub fn is_in_subset(c: &WideF32x4) -> bool
pub fn is_in_subset(c: &WideF32x4) -> bool
Checks if element
is actually part of the subset Self
(and can be converted to it).
fn from_superset(element: &T) -> Option<Self>
fn from_superset(element: &T) -> Option<Self>
The inverse inclusion map: attempts to construct self
from the equivalent element of its
superset. Read more
pub fn to_superset(&self) -> WideF32x4
pub fn to_superset(&self) -> WideF32x4
The inclusion map: converts self
to the equivalent element of its superset.
pub fn from_superset_unchecked(element: &WideF32x4) -> isize
pub fn from_superset_unchecked(element: &WideF32x4) -> isize
Use with care! Same as self.to_superset
but without any property checks. Always succeeds.
pub fn is_in_subset(c: &WideF32x4) -> bool
pub fn is_in_subset(c: &WideF32x4) -> bool
Checks if element
is actually part of the subset Self
(and can be converted to it).
fn from_superset(element: &T) -> Option<Self>
fn from_superset(element: &T) -> Option<Self>
The inverse inclusion map: attempts to construct self
from the equivalent element of its
superset. Read more
pub fn to_superset(&self) -> WideF32x4
pub fn to_superset(&self) -> WideF32x4
The inclusion map: converts self
to the equivalent element of its superset.
pub fn from_superset_unchecked(element: &WideF32x4) -> i64
pub fn from_superset_unchecked(element: &WideF32x4) -> i64
Use with care! Same as self.to_superset
but without any property checks. Always succeeds.
pub fn is_in_subset(c: &WideF32x4) -> bool
pub fn is_in_subset(c: &WideF32x4) -> bool
Checks if element
is actually part of the subset Self
(and can be converted to it).
fn from_superset(element: &T) -> Option<Self>
fn from_superset(element: &T) -> Option<Self>
The inverse inclusion map: attempts to construct self
from the equivalent element of its
superset. Read more
pub fn to_superset(&self) -> WideF32x4
pub fn to_superset(&self) -> WideF32x4
The inclusion map: converts self
to the equivalent element of its superset.
pub fn from_superset_unchecked(element: &WideF32x4) -> f32
pub fn from_superset_unchecked(element: &WideF32x4) -> f32
Use with care! Same as self.to_superset
but without any property checks. Always succeeds.
pub fn is_in_subset(c: &WideF32x4) -> bool
pub fn is_in_subset(c: &WideF32x4) -> bool
Checks if element
is actually part of the subset Self
(and can be converted to it).
fn from_superset(element: &T) -> Option<Self>
fn from_superset(element: &T) -> Option<Self>
The inverse inclusion map: attempts to construct self
from the equivalent element of its
superset. Read more
pub fn to_superset(&self) -> WideF32x4
pub fn to_superset(&self) -> WideF32x4
The inclusion map: converts self
to the equivalent element of its superset.
pub fn from_superset_unchecked(element: &WideF32x4) -> u16
pub fn from_superset_unchecked(element: &WideF32x4) -> u16
Use with care! Same as self.to_superset
but without any property checks. Always succeeds.
pub fn is_in_subset(c: &WideF32x4) -> bool
pub fn is_in_subset(c: &WideF32x4) -> bool
Checks if element
is actually part of the subset Self
(and can be converted to it).
fn from_superset(element: &T) -> Option<Self>
fn from_superset(element: &T) -> Option<Self>
The inverse inclusion map: attempts to construct self
from the equivalent element of its
superset. Read more
pub fn to_superset(&self) -> WideF32x4
pub fn to_superset(&self) -> WideF32x4
The inclusion map: converts self
to the equivalent element of its superset.
pub fn from_superset_unchecked(element: &WideF32x4) -> i32
pub fn from_superset_unchecked(element: &WideF32x4) -> i32
Use with care! Same as self.to_superset
but without any property checks. Always succeeds.
pub fn is_in_subset(c: &WideF32x4) -> bool
pub fn is_in_subset(c: &WideF32x4) -> bool
Checks if element
is actually part of the subset Self
(and can be converted to it).
fn from_superset(element: &T) -> Option<Self>
fn from_superset(element: &T) -> Option<Self>
The inverse inclusion map: attempts to construct self
from the equivalent element of its
superset. Read more
pub fn to_superset(&self) -> WideF32x4
pub fn to_superset(&self) -> WideF32x4
The inclusion map: converts self
to the equivalent element of its superset.
pub fn from_superset_unchecked(element: &WideF32x4) -> f64
pub fn from_superset_unchecked(element: &WideF32x4) -> f64
Use with care! Same as self.to_superset
but without any property checks. Always succeeds.
pub fn is_in_subset(c: &WideF32x4) -> bool
pub fn is_in_subset(c: &WideF32x4) -> bool
Checks if element
is actually part of the subset Self
(and can be converted to it).
fn from_superset(element: &T) -> Option<Self>
fn from_superset(element: &T) -> Option<Self>
The inverse inclusion map: attempts to construct self
from the equivalent element of its
superset. Read more
pub fn to_superset(&self) -> WideF32x4
pub fn to_superset(&self) -> WideF32x4
The inclusion map: converts self
to the equivalent element of its superset.
pub fn from_superset(element: &WideF32x4) -> Option<WideF32x4>
pub fn from_superset(element: &WideF32x4) -> Option<WideF32x4>
The inverse inclusion map: attempts to construct self
from the equivalent element of its
superset. Read more
pub fn from_superset_unchecked(element: &WideF32x4) -> WideF32x4
pub fn from_superset_unchecked(element: &WideF32x4) -> WideF32x4
Use with care! Same as self.to_superset
but without any property checks. Always succeeds.
pub fn is_in_subset(&WideF32x4) -> bool
pub fn is_in_subset(&WideF32x4) -> bool
Checks if element
is actually part of the subset Self
(and can be converted to it).
pub fn to_superset(&self) -> WideF32x4
pub fn to_superset(&self) -> WideF32x4
The inclusion map: converts self
to the equivalent element of its superset.
pub fn from_superset_unchecked(element: &WideF32x4) -> i8
pub fn from_superset_unchecked(element: &WideF32x4) -> i8
Use with care! Same as self.to_superset
but without any property checks. Always succeeds.
pub fn is_in_subset(c: &WideF32x4) -> bool
pub fn is_in_subset(c: &WideF32x4) -> bool
Checks if element
is actually part of the subset Self
(and can be converted to it).
fn from_superset(element: &T) -> Option<Self>
fn from_superset(element: &T) -> Option<Self>
The inverse inclusion map: attempts to construct self
from the equivalent element of its
superset. Read more
pub fn to_superset(&self) -> WideF32x4
pub fn to_superset(&self) -> WideF32x4
The inclusion map: converts self
to the equivalent element of its superset.
pub fn from_superset_unchecked(element: &WideF32x4) -> u32
pub fn from_superset_unchecked(element: &WideF32x4) -> u32
Use with care! Same as self.to_superset
but without any property checks. Always succeeds.
pub fn is_in_subset(c: &WideF32x4) -> bool
pub fn is_in_subset(c: &WideF32x4) -> bool
Checks if element
is actually part of the subset Self
(and can be converted to it).
fn from_superset(element: &T) -> Option<Self>
fn from_superset(element: &T) -> Option<Self>
The inverse inclusion map: attempts to construct self
from the equivalent element of its
superset. Read more
pub fn to_superset(&self) -> WideF32x4
pub fn to_superset(&self) -> WideF32x4
The inclusion map: converts self
to the equivalent element of its superset.
pub fn from_superset_unchecked(element: &WideF32x4) -> usize
pub fn from_superset_unchecked(element: &WideF32x4) -> usize
Use with care! Same as self.to_superset
but without any property checks. Always succeeds.
pub fn is_in_subset(c: &WideF32x4) -> bool
pub fn is_in_subset(c: &WideF32x4) -> bool
Checks if element
is actually part of the subset Self
(and can be converted to it).
fn from_superset(element: &T) -> Option<Self>
fn from_superset(element: &T) -> Option<Self>
The inverse inclusion map: attempts to construct self
from the equivalent element of its
superset. Read more
pub fn to_superset(&self) -> WideF32x4
pub fn to_superset(&self) -> WideF32x4
The inclusion map: converts self
to the equivalent element of its superset.
pub fn from_superset_unchecked(element: &WideF32x4) -> i16
pub fn from_superset_unchecked(element: &WideF32x4) -> i16
Use with care! Same as self.to_superset
but without any property checks. Always succeeds.
pub fn is_in_subset(c: &WideF32x4) -> bool
pub fn is_in_subset(c: &WideF32x4) -> bool
Checks if element
is actually part of the subset Self
(and can be converted to it).
fn from_superset(element: &T) -> Option<Self>
fn from_superset(element: &T) -> Option<Self>
The inverse inclusion map: attempts to construct self
from the equivalent element of its
superset. Read more
pub fn to_superset(&self) -> WideF32x4
pub fn to_superset(&self) -> WideF32x4
The inclusion map: converts self
to the equivalent element of its superset.
pub fn from_superset_unchecked(element: &WideF32x4) -> u8
pub fn from_superset_unchecked(element: &WideF32x4) -> u8
Use with care! Same as self.to_superset
but without any property checks. Always succeeds.
pub fn is_in_subset(c: &WideF32x4) -> bool
pub fn is_in_subset(c: &WideF32x4) -> bool
Checks if element
is actually part of the subset Self
(and can be converted to it).
fn from_superset(element: &T) -> Option<Self>
fn from_superset(element: &T) -> Option<Self>
The inverse inclusion map: attempts to construct self
from the equivalent element of its
superset. Read more
impl PrimitiveSimdValue for WideF32x4
Auto Trait Implementations
impl RefUnwindSafe for WideF32x4
impl UnwindSafe for WideF32x4
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