Struct simba::simd::WideF64x4

source ·
#[repr(transparent)]
pub struct WideF64x4(pub f64x4);
Expand description

A wrapper type of wide::f64x4 that implements all the relevant traits from num and simba.

This is needed to overcome the orphan rules.

Tuple Fields§

§0: f64x4

Trait Implementations§

source§

impl Add for WideF64x4

source§

type Output = WideF64x4

The resulting type after applying the + operator.
source§

fn add(self, rhs: Self) -> Self

Performs the + operation. Read more
source§

impl AddAssign for WideF64x4

source§

fn add_assign(&mut self, rhs: Self)

Performs the += operation. Read more
source§

impl Clone for WideF64x4

source§

fn clone(&self) -> WideF64x4

Returns a copy of the value. Read more
1.0.0 · source§

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

Performs copy-assignment from source. Read more
source§

impl Debug for WideF64x4

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Div for WideF64x4

source§

type Output = WideF64x4

The resulting type after applying the / operator.
source§

fn div(self, rhs: Self) -> Self

Performs the / operation. Read more
source§

impl DivAssign for WideF64x4

source§

fn div_assign(&mut self, rhs: Self)

Performs the /= operation. Read more
source§

impl From<[f64; 4]> for WideF64x4

source§

fn from(vals: [f64; 4]) -> Self

Converts to this type from the input type.
source§

impl From<WideF64x4> for [f64; 4]

source§

fn from(val: WideF64x4) -> [f64; 4]

Converts to this type from the input type.
source§

impl FromPrimitive for WideF64x4

source§

fn from_i64(n: i64) -> Option<Self>

Converts an i64 to return an optional value of this type. If the value cannot be represented by this type, then None is returned.
source§

fn from_u64(n: u64) -> Option<Self>

Converts an u64 to return an optional value of this type. If the value cannot be represented by this type, then None is returned.
source§

fn from_isize(n: isize) -> Option<Self>

Converts an isize to return an optional value of this type. If the value cannot be represented by this type, then None is returned.
source§

fn from_i8(n: i8) -> Option<Self>

Converts an i8 to return an optional value of this type. If the value cannot be represented by this type, then None is returned.
source§

fn from_i16(n: i16) -> Option<Self>

Converts an i16 to return an optional value of this type. If the value cannot be represented by this type, then None is returned.
source§

fn from_i32(n: i32) -> Option<Self>

Converts an i32 to return an optional value of this type. If the value cannot be represented by this type, then None is returned.
source§

fn from_usize(n: usize) -> Option<Self>

Converts a usize to return an optional value of this type. If the value cannot be represented by this type, then None is returned.
source§

fn from_u8(n: u8) -> Option<Self>

Converts an u8 to return an optional value of this type. If the value cannot be represented by this type, then None is returned.
source§

fn from_u16(n: u16) -> Option<Self>

Converts an u16 to return an optional value of this type. If the value cannot be represented by this type, then None is returned.
source§

fn from_u32(n: u32) -> Option<Self>

Converts an u32 to return an optional value of this type. If the value cannot be represented by this type, then None is returned.
source§

fn from_f32(n: f32) -> Option<Self>

Converts a f32 to return an optional value of this type. If the value cannot be represented by this type, then None is returned.
source§

fn from_f64(n: f64) -> Option<Self>

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
source§

fn from_i128(n: i128) -> Option<Self>

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
source§

fn from_u128(n: u128) -> Option<Self>

Converts an u128 to return an optional value of this type. If the value cannot be represented by this type, then None is returned. Read more
source§

impl Mul for WideF64x4

source§

type Output = WideF64x4

The resulting type after applying the * operator.
source§

fn mul(self, rhs: Self) -> Self

Performs the * operation. Read more
source§

impl MulAssign for WideF64x4

source§

fn mul_assign(&mut self, rhs: Self)

Performs the *= operation. Read more
source§

impl Neg for WideF64x4

source§

type Output = WideF64x4

The resulting type after applying the - operator.
source§

fn neg(self) -> Self

Performs the unary - operation. Read more
source§

impl Num for WideF64x4

source§

type FromStrRadixErr = <f64 as Num>::FromStrRadixErr

source§

fn from_str_radix(str: &str, radix: u32) -> Result<Self, Self::FromStrRadixErr>

Convert from a string and radix (typically 2..=36). Read more
source§

impl One for WideF64x4

source§

fn one() -> Self

Returns the multiplicative identity element of Self, 1. Read more
source§

fn set_one(&mut self)

Sets self to the multiplicative identity element of Self, 1.
source§

fn is_one(&self) -> bool
where Self: PartialEq,

Returns true if self is equal to the multiplicative identity. Read more
source§

impl PartialEq for WideF64x4

source§

fn eq(&self, rhs: &Self) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl Rem for WideF64x4

source§

type Output = WideF64x4

The resulting type after applying the % operator.
source§

fn rem(self, rhs: Self) -> Self

Performs the % operation. Read more
source§

impl RemAssign for WideF64x4

source§

fn rem_assign(&mut self, rhs: Self)

Performs the %= operation. Read more
source§

impl SimdComplexField for WideF64x4

source§

type SimdRealField = WideF64x4

Type of the coefficients of a complex number.
source§

fn simd_horizontal_sum(self) -> Self::Element

Computes the sum of all the lanes of self.
source§

fn simd_horizontal_product(self) -> Self::Element

Computes the product of all the lanes of self.
source§

fn from_simd_real(re: Self::SimdRealField) -> Self

Builds a pure-real complex number from the given value.
source§

fn simd_real(self) -> Self::SimdRealField

The real part of this complex number.
source§

fn simd_imaginary(self) -> Self::SimdRealField

The imaginary part of this complex number.
source§

fn simd_norm1(self) -> Self::SimdRealField

The sum of the absolute value of this complex number’s real and imaginary part.
source§

fn simd_modulus(self) -> Self::SimdRealField

The modulus of this complex number.
source§

fn simd_modulus_squared(self) -> Self::SimdRealField

The squared modulus of this complex number.
source§

fn simd_argument(self) -> Self::SimdRealField

The argument of this complex number.
source§

fn simd_to_exp(self) -> (Self::SimdRealField, Self)

The exponential form of this complex number: (modulus, e^{i arg})
source§

fn simd_recip(self) -> Self

source§

fn simd_conjugate(self) -> Self

source§

fn simd_scale(self, factor: Self::SimdRealField) -> Self

Multiplies this complex number by factor.
source§

fn simd_unscale(self, factor: Self::SimdRealField) -> Self

Divides this complex number by factor.
source§

fn simd_floor(self) -> Self

source§

fn simd_ceil(self) -> Self

source§

fn simd_round(self) -> Self

source§

fn simd_trunc(self) -> Self

source§

fn simd_fract(self) -> Self

source§

fn simd_abs(self) -> Self

The absolute value of this complex number: self / self.signum(). Read more
source§

fn simd_signum(self) -> Self

The exponential part of this complex number: self / self.modulus()
source§

fn simd_mul_add(self, a: Self, b: Self) -> Self

source§

fn simd_powi(self, n: i32) -> Self

source§

fn simd_powf(self, n: Self) -> Self

source§

fn simd_powc(self, n: Self) -> Self

source§

fn simd_sqrt(self) -> Self

source§

fn simd_exp(self) -> Self

source§

fn simd_exp2(self) -> Self

source§

fn simd_exp_m1(self) -> Self

source§

fn simd_ln_1p(self) -> Self

source§

fn simd_ln(self) -> Self

source§

fn simd_log(self, base: Self) -> Self

source§

fn simd_log2(self) -> Self

source§

fn simd_log10(self) -> Self

source§

fn simd_cbrt(self) -> Self

source§

fn simd_hypot(self, other: Self) -> Self::SimdRealField

Computes (self.conjugate() * self + other.conjugate() * other).sqrt()
source§

fn simd_sin(self) -> Self

source§

fn simd_cos(self) -> Self

source§

fn simd_tan(self) -> Self

source§

fn simd_asin(self) -> Self

source§

fn simd_acos(self) -> Self

source§

fn simd_atan(self) -> Self

source§

fn simd_sin_cos(self) -> (Self, Self)

source§

fn simd_sinh(self) -> Self

source§

fn simd_cosh(self) -> Self

source§

fn simd_tanh(self) -> Self

source§

fn simd_asinh(self) -> Self

source§

fn simd_acosh(self) -> Self

source§

fn simd_atanh(self) -> Self

source§

fn simd_to_polar(self) -> (Self::SimdRealField, Self::SimdRealField)

The polar form of this complex number: (modulus, arg)
source§

fn simd_sinh_cosh(self) -> (Self, Self)

source§

fn simd_sinc(self) -> Self

Cardinal sine
source§

fn simd_sinhc(self) -> Self

source§

fn simd_cosc(self) -> Self

Cardinal cos
source§

fn simd_coshc(self) -> Self

source§

impl SimdPartialOrd for WideF64x4

source§

fn simd_gt(self, other: Self) -> Self::SimdBool

Lanewise greater than > comparison.
source§

fn simd_lt(self, other: Self) -> Self::SimdBool

Lanewise less than < comparison.
source§

fn simd_ge(self, other: Self) -> Self::SimdBool

Lanewise greater or equal >= comparison.
source§

fn simd_le(self, other: Self) -> Self::SimdBool

Lanewise less or equal <= comparison.
source§

fn simd_eq(self, other: Self) -> Self::SimdBool

Lanewise equal == comparison.
source§

fn simd_ne(self, other: Self) -> Self::SimdBool

Lanewise not equal != comparison.
source§

fn simd_max(self, other: Self) -> Self

Lanewise max value.
source§

fn simd_min(self, other: Self) -> Self

Lanewise min value.
source§

fn simd_clamp(self, min: Self, max: Self) -> Self

Clamps each lane of self between the corresponding lane of min and max.
source§

fn simd_horizontal_min(self) -> Self::Element

The min value among all lanes of self.
source§

fn simd_horizontal_max(self) -> Self::Element

The max value among all lanes of self.
source§

impl SimdRealField for WideF64x4

source§

fn simd_atan2(self, other: Self) -> Self

source§

fn simd_copysign(self, sign: Self) -> Self

Copies the sign of sign to self. Read more
source§

fn simd_default_epsilon() -> Self

source§

fn simd_pi() -> Self

source§

fn simd_two_pi() -> Self

source§

fn simd_frac_pi_2() -> Self

source§

fn simd_frac_pi_3() -> Self

source§

fn simd_frac_pi_4() -> Self

source§

fn simd_frac_pi_6() -> Self

source§

fn simd_frac_pi_8() -> Self

source§

fn simd_frac_1_pi() -> Self

source§

fn simd_frac_2_pi() -> Self

source§

fn simd_frac_2_sqrt_pi() -> Self

source§

fn simd_e() -> Self

source§

fn simd_log2_e() -> Self

source§

fn simd_log10_e() -> Self

source§

fn simd_ln_2() -> Self

source§

fn simd_ln_10() -> Self

source§

impl SimdSigned for WideF64x4

source§

fn simd_abs(&self) -> Self

The absolute value of each lane of self.
source§

fn simd_abs_sub(&self, other: &Self) -> Self

The absolute difference of each lane of self. Read more
source§

fn simd_signum(&self) -> Self

The signum of each lane of Self.
source§

fn is_simd_positive(&self) -> Self::SimdBool

Tests which lane is positive.
source§

fn is_simd_negative(&self) -> Self::SimdBool

Tests which lane is negative.
source§

impl SimdValue for WideF64x4

source§

type Element = f64

The type of the elements of each lane of this SIMD value.
source§

type SimdBool = WideBoolF64x4

Type of the result of comparing two SIMD values like self.
source§

fn lanes() -> usize

The number of lanes of this SIMD value.
source§

fn splat(val: Self::Element) -> Self

Initializes an SIMD value with each lanes set to val.
source§

fn extract(&self, i: usize) -> Self::Element

Extracts the i-th lane of self. Read more
source§

unsafe fn extract_unchecked(&self, i: usize) -> Self::Element

Extracts the i-th lane of self without bound-checking.
source§

fn replace(&mut self, i: usize, val: Self::Element)

Replaces the i-th lane of self by val. Read more
source§

unsafe fn replace_unchecked(&mut self, i: usize, val: Self::Element)

Replaces the i-th lane of self by val without bound-checking.
source§

fn select(self, cond: Self::SimdBool, other: Self) -> Self

Merges self and other depending on the lanes of cond. Read more
source§

fn map_lanes(self, f: impl Fn(Self::Element) -> Self::Element) -> Self
where Self: Clone,

Applies a function to each lane of self. Read more
source§

fn zip_map_lanes( self, b: Self, f: impl Fn(Self::Element, Self::Element) -> Self::Element, ) -> Self
where Self: Clone,

Applies a function to each lane of self paired with the corresponding lane of b. Read more
source§

impl Sub for WideF64x4

source§

type Output = WideF64x4

The resulting type after applying the - operator.
source§

fn sub(self, rhs: Self) -> Self

Performs the - operation. Read more
source§

impl SubAssign for WideF64x4

source§

fn sub_assign(&mut self, rhs: Self)

Performs the -= operation. Read more
source§

impl SubsetOf<WideF64x4> for WideF64x4

source§

fn to_superset(&self) -> Self

The inclusion map: converts self to the equivalent element of its superset.
source§

fn from_superset(element: &Self) -> Option<Self>

The inverse inclusion map: attempts to construct self from the equivalent element of its superset. Read more
source§

fn from_superset_unchecked(element: &Self) -> Self

Use with care! Same as self.to_superset but without any property checks. Always succeeds.
source§

fn is_in_subset(_: &Self) -> bool

Checks if element is actually part of the subset Self (and can be converted to it).
source§

impl SubsetOf<WideF64x4> for f32

source§

fn to_superset(&self) -> WideF64x4

The inclusion map: converts self to the equivalent element of its superset.
source§

fn from_superset_unchecked(element: &WideF64x4) -> f32

Use with care! Same as self.to_superset but without any property checks. Always succeeds.
source§

fn is_in_subset(c: &WideF64x4) -> bool

Checks if element is actually part of the subset Self (and can be converted to it).
source§

fn from_superset(element: &T) -> Option<Self>

The inverse inclusion map: attempts to construct self from the equivalent element of its superset. Read more
source§

impl SubsetOf<WideF64x4> for f64

source§

fn to_superset(&self) -> WideF64x4

The inclusion map: converts self to the equivalent element of its superset.
source§

fn from_superset_unchecked(element: &WideF64x4) -> f64

Use with care! Same as self.to_superset but without any property checks. Always succeeds.
source§

fn is_in_subset(c: &WideF64x4) -> bool

Checks if element is actually part of the subset Self (and can be converted to it).
source§

fn from_superset(element: &T) -> Option<Self>

The inverse inclusion map: attempts to construct self from the equivalent element of its superset. Read more
source§

impl SubsetOf<WideF64x4> for i16

source§

fn to_superset(&self) -> WideF64x4

The inclusion map: converts self to the equivalent element of its superset.
source§

fn from_superset_unchecked(element: &WideF64x4) -> i16

Use with care! Same as self.to_superset but without any property checks. Always succeeds.
source§

fn is_in_subset(c: &WideF64x4) -> bool

Checks if element is actually part of the subset Self (and can be converted to it).
source§

fn from_superset(element: &T) -> Option<Self>

The inverse inclusion map: attempts to construct self from the equivalent element of its superset. Read more
source§

impl SubsetOf<WideF64x4> for i32

source§

fn to_superset(&self) -> WideF64x4

The inclusion map: converts self to the equivalent element of its superset.
source§

fn from_superset_unchecked(element: &WideF64x4) -> i32

Use with care! Same as self.to_superset but without any property checks. Always succeeds.
source§

fn is_in_subset(c: &WideF64x4) -> bool

Checks if element is actually part of the subset Self (and can be converted to it).
source§

fn from_superset(element: &T) -> Option<Self>

The inverse inclusion map: attempts to construct self from the equivalent element of its superset. Read more
source§

impl SubsetOf<WideF64x4> for i64

source§

fn to_superset(&self) -> WideF64x4

The inclusion map: converts self to the equivalent element of its superset.
source§

fn from_superset_unchecked(element: &WideF64x4) -> i64

Use with care! Same as self.to_superset but without any property checks. Always succeeds.
source§

fn is_in_subset(c: &WideF64x4) -> bool

Checks if element is actually part of the subset Self (and can be converted to it).
source§

fn from_superset(element: &T) -> Option<Self>

The inverse inclusion map: attempts to construct self from the equivalent element of its superset. Read more
source§

impl SubsetOf<WideF64x4> for i8

source§

fn to_superset(&self) -> WideF64x4

The inclusion map: converts self to the equivalent element of its superset.
source§

fn from_superset_unchecked(element: &WideF64x4) -> i8

Use with care! Same as self.to_superset but without any property checks. Always succeeds.
source§

fn is_in_subset(c: &WideF64x4) -> bool

Checks if element is actually part of the subset Self (and can be converted to it).
source§

fn from_superset(element: &T) -> Option<Self>

The inverse inclusion map: attempts to construct self from the equivalent element of its superset. Read more
source§

impl SubsetOf<WideF64x4> for isize

source§

fn to_superset(&self) -> WideF64x4

The inclusion map: converts self to the equivalent element of its superset.
source§

fn from_superset_unchecked(element: &WideF64x4) -> isize

Use with care! Same as self.to_superset but without any property checks. Always succeeds.
source§

fn is_in_subset(c: &WideF64x4) -> bool

Checks if element is actually part of the subset Self (and can be converted to it).
source§

fn from_superset(element: &T) -> Option<Self>

The inverse inclusion map: attempts to construct self from the equivalent element of its superset. Read more
source§

impl SubsetOf<WideF64x4> for u16

source§

fn to_superset(&self) -> WideF64x4

The inclusion map: converts self to the equivalent element of its superset.
source§

fn from_superset_unchecked(element: &WideF64x4) -> u16

Use with care! Same as self.to_superset but without any property checks. Always succeeds.
source§

fn is_in_subset(c: &WideF64x4) -> bool

Checks if element is actually part of the subset Self (and can be converted to it).
source§

fn from_superset(element: &T) -> Option<Self>

The inverse inclusion map: attempts to construct self from the equivalent element of its superset. Read more
source§

impl SubsetOf<WideF64x4> for u32

source§

fn to_superset(&self) -> WideF64x4

The inclusion map: converts self to the equivalent element of its superset.
source§

fn from_superset_unchecked(element: &WideF64x4) -> u32

Use with care! Same as self.to_superset but without any property checks. Always succeeds.
source§

fn is_in_subset(c: &WideF64x4) -> bool

Checks if element is actually part of the subset Self (and can be converted to it).
source§

fn from_superset(element: &T) -> Option<Self>

The inverse inclusion map: attempts to construct self from the equivalent element of its superset. Read more
source§

impl SubsetOf<WideF64x4> for u64

source§

fn to_superset(&self) -> WideF64x4

The inclusion map: converts self to the equivalent element of its superset.
source§

fn from_superset_unchecked(element: &WideF64x4) -> u64

Use with care! Same as self.to_superset but without any property checks. Always succeeds.
source§

fn is_in_subset(c: &WideF64x4) -> bool

Checks if element is actually part of the subset Self (and can be converted to it).
source§

fn from_superset(element: &T) -> Option<Self>

The inverse inclusion map: attempts to construct self from the equivalent element of its superset. Read more
source§

impl SubsetOf<WideF64x4> for u8

source§

fn to_superset(&self) -> WideF64x4

The inclusion map: converts self to the equivalent element of its superset.
source§

fn from_superset_unchecked(element: &WideF64x4) -> u8

Use with care! Same as self.to_superset but without any property checks. Always succeeds.
source§

fn is_in_subset(c: &WideF64x4) -> bool

Checks if element is actually part of the subset Self (and can be converted to it).
source§

fn from_superset(element: &T) -> Option<Self>

The inverse inclusion map: attempts to construct self from the equivalent element of its superset. Read more
source§

impl SubsetOf<WideF64x4> for usize

source§

fn to_superset(&self) -> WideF64x4

The inclusion map: converts self to the equivalent element of its superset.
source§

fn from_superset_unchecked(element: &WideF64x4) -> usize

Use with care! Same as self.to_superset but without any property checks. Always succeeds.
source§

fn is_in_subset(c: &WideF64x4) -> bool

Checks if element is actually part of the subset Self (and can be converted to it).
source§

fn from_superset(element: &T) -> Option<Self>

The inverse inclusion map: attempts to construct self from the equivalent element of its superset. Read more
source§

impl Zero for WideF64x4

source§

fn zero() -> Self

Returns the additive identity element of Self, 0. Read more
source§

fn is_zero(&self) -> bool

Returns true if self is equal to the additive identity.
source§

fn set_zero(&mut self)

Sets self to the additive identity element of Self, 0.
source§

impl Copy for WideF64x4

source§

impl Field for WideF64x4

source§

impl PrimitiveSimdValue for WideF64x4

Auto Trait Implementations§

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, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. 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<SS, SP> SupersetOf<SS> for SP
where SS: SubsetOf<SP>,

source§

fn to_subset(&self) -> Option<SS>

The inverse inclusion map: attempts to construct self from the equivalent element of its superset. Read more
source§

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

Use with care! Same as self.to_subset but without any property checks. Always succeeds.
source§

fn from_subset(element: &SS) -> SP

The inclusion map: converts self to the equivalent element of its superset.
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 = Infallible

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

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

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.
source§

impl<T, Right> ClosedAdd<Right> for T
where T: Add<Right, Output = T> + AddAssign<Right>,

source§

impl<T, Right> ClosedDiv<Right> for T
where T: Div<Right, Output = T> + DivAssign<Right>,

source§

impl<T, Right> ClosedMul<Right> for T
where T: Mul<Right, Output = T> + MulAssign<Right>,

source§

impl<T> ClosedNeg for T
where T: Neg<Output = T>,

source§

impl<T, Right> ClosedSub<Right> for T
where T: Sub<Right, Output = T> + SubAssign<Right>,

source§

impl<T> NumAssign for T
where T: Num + NumAssignOps,

source§

impl<T, Rhs> NumAssignOps<Rhs> for T
where T: AddAssign<Rhs> + SubAssign<Rhs> + MulAssign<Rhs> + DivAssign<Rhs> + RemAssign<Rhs>,

source§

impl<T, Rhs, Output> NumOps<Rhs, Output> for T
where T: Sub<Rhs, Output = Output> + Mul<Rhs, Output = Output> + Div<Rhs, Output = Output> + Add<Rhs, Output = Output> + Rem<Rhs, Output = Output>,