Struct num_dual::Dual3

source ·
pub struct Dual3<T, F = T> {
    pub re: T,
    pub v1: T,
    pub v2: T,
    pub v3: T,
    /* private fields */
}
Expand description

A scalar third order dual number for the calculation of third derivatives.

Fields§

§re: T

Real part of the third order dual number

§v1: T

First derivative part of the third order dual number

§v2: T

Second derivative part of the third order dual number

§v3: T

Third derivative part of the third order dual number

Implementations§

source§

impl<T, F> Dual3<T, F>

source

pub fn new(re: T, v1: T, v2: T, v3: T) -> Self

Create a new third order dual number from its fields.

source§

impl<T: DualNum<F>, F> Dual3<T, F>

source

pub fn from_re(re: T) -> Self

Create a new third order dual number from the real part.

source

pub fn derivative(self) -> Self

Set the first derivative part to 1.

let x = Dual3::from_re(5.0).derivative().powi(3);
assert_eq!(x.re, 125.0);
assert_eq!(x.v1, 75.0);
assert_eq!(x.v2, 30.0);
assert_eq!(x.v3, 6.0);

Trait Implementations§

source§

impl<'a, 'b, T: DualNum<F>, F: Float> Add<&'a Dual3<T, F>> for &'b Dual3<T, F>

§

type Output = Dual3<T, F>

The resulting type after applying the + operator.
source§

fn add(self, other: &Dual3<T, F>) -> Dual3<T, F>

Performs the + operation. Read more
source§

impl<T: DualNum<F>, F: Float> Add<&Dual3<T, F>> for Dual3<T, F>

§

type Output = Dual3<T, F>

The resulting type after applying the + operator.
source§

fn add(self, rhs: &Dual3<T, F>) -> Self::Output

Performs the + operation. Read more
source§

impl<T: DualNum<F>, F: Float> Add<Dual3<T, F>> for &Dual3<T, F>

§

type Output = Dual3<T, F>

The resulting type after applying the + operator.
source§

fn add(self, rhs: Dual3<T, F>) -> Self::Output

Performs the + operation. Read more
source§

impl<T: DualNum<F>, F> Add<F> for Dual3<T, F>

§

type Output = Dual3<T, F>

The resulting type after applying the + operator.
source§

fn add(self, other: F) -> Self

Performs the + operation. Read more
source§

impl<T: DualNum<F>, F: Float> Add for Dual3<T, F>

§

type Output = Dual3<T, F>

The resulting type after applying the + operator.
source§

fn add(self, rhs: Dual3<T, F>) -> Self::Output

Performs the + operation. Read more
source§

impl<T: DualNum<F>, F> AddAssign<F> for Dual3<T, F>

source§

fn add_assign(&mut self, other: F)

Performs the += operation. Read more
source§

impl<T: DualNum<F>, F> AddAssign for Dual3<T, F>

source§

fn add_assign(&mut self, other: Self)

Performs the += operation. Read more
source§

impl<T: Clone, F: Clone> Clone for Dual3<T, F>

source§

fn clone(&self) -> Dual3<T, F>

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<T: Debug, F: Debug> Debug for Dual3<T, F>

source§

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

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

impl<T: Display, F> Display for Dual3<T, F>

source§

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

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

impl<'a, 'b, T: DualNum<F>, F: Float> Div<&'a Dual3<T, F>> for &'b Dual3<T, F>

§

type Output = Dual3<T, F>

The resulting type after applying the / operator.
source§

fn div(self, rhs: &Dual3<T, F>) -> Dual3<T, F>

Performs the / operation. Read more
source§

impl<T: DualNum<F>, F: Float> Div<&Dual3<T, F>> for Dual3<T, F>

§

type Output = Dual3<T, F>

The resulting type after applying the / operator.
source§

fn div(self, rhs: &Dual3<T, F>) -> Self::Output

Performs the / operation. Read more
source§

impl<T: DualNum<F>, F: Float> Div<Dual3<T, F>> for &Dual3<T, F>

§

type Output = Dual3<T, F>

The resulting type after applying the / operator.
source§

fn div(self, rhs: Dual3<T, F>) -> Self::Output

Performs the / operation. Read more
source§

impl<T: DualNum<F>, F: DualNumFloat> Div<F> for Dual3<T, F>

§

type Output = Dual3<T, F>

The resulting type after applying the / operator.
source§

fn div(self, other: F) -> Self

Performs the / operation. Read more
source§

impl<T: DualNum<F>, F: Float> Div for Dual3<T, F>

§

type Output = Dual3<T, F>

The resulting type after applying the / operator.
source§

fn div(self, rhs: Dual3<T, F>) -> Self::Output

Performs the / operation. Read more
source§

impl<T: DualNum<F>, F: DualNumFloat> DivAssign<F> for Dual3<T, F>

source§

fn div_assign(&mut self, other: F)

Performs the /= operation. Read more
source§

impl<T: DualNum<F>, F: Float> DivAssign for Dual3<T, F>

source§

fn div_assign(&mut self, other: Self)

Performs the /= operation. Read more
source§

impl<T: DualNum<F>, F: DualNumFloat> DualNum<F> for Dual3<T, F>

source§

const NDERIV: usize = _

Highest derivative that can be calculated with this struct
source§

fn re(&self) -> F

Real part (0th derivative) of the number
source§

fn recip(&self) -> Self

Reciprocal (inverse) of a number 1/x.
source§

fn powi(&self, exp: i32) -> Self

Power with integer exponent x^n
source§

fn powf(&self, n: F) -> Self

Power with real exponent x^n
source§

fn sqrt(&self) -> Self

Square root
source§

fn cbrt(&self) -> Self

Cubic root
source§

fn exp(&self) -> Self

Exponential e^x
source§

fn exp2(&self) -> Self

Exponential with base 2 2^x
source§

fn exp_m1(&self) -> Self

Exponential minus 1 e^x-1
source§

fn ln(&self) -> Self

Natural logarithm
source§

fn log(&self, base: F) -> Self

Logarithm with arbitrary base
source§

fn log2(&self) -> Self

Logarithm with base 2
source§

fn log10(&self) -> Self

Logarithm with base 10
source§

fn ln_1p(&self) -> Self

Logarithm on x plus one ln(1+x)
source§

fn sin(&self) -> Self

Sine
source§

fn cos(&self) -> Self

Cosine
source§

fn sin_cos(&self) -> (Self, Self)

Calculate sine and cosine simultaneously
source§

fn tan(&self) -> Self

Tangent
source§

fn asin(&self) -> Self

Arcsine
source§

fn acos(&self) -> Self

Arccosine
source§

fn atan(&self) -> Self

Arctangent
source§

fn sinh(&self) -> Self

Hyperbolic sine
source§

fn cosh(&self) -> Self

Hyperbolic cosine
source§

fn tanh(&self) -> Self

Hyperbolic tangent
source§

fn asinh(&self) -> Self

Area hyperbolic sine
source§

fn acosh(&self) -> Self

Area hyperbolic cosine
source§

fn atanh(&self) -> Self

Area hyperbolic tangent
source§

fn sph_j0(&self) -> Self

0th order spherical Bessel function of the first kind
source§

fn sph_j1(&self) -> Self

1st order spherical Bessel function of the first kind
source§

fn sph_j2(&self) -> Self

2nd order spherical Bessel function of the first kind
source§

fn mul_add(&self, a: Self, b: Self) -> Self

Fused multiply-add
source§

fn powd(&self, exp: Self) -> Self

Power with dual exponent x^n
source§

impl<T: DualNum<F>, F: Float + FloatConst> FloatConst for Dual3<T, F>

source§

fn E() -> Self

Return Euler’s number.
source§

fn FRAC_1_PI() -> Self

Return 1.0 / π.
source§

fn FRAC_1_SQRT_2() -> Self

Return 1.0 / sqrt(2.0).
source§

fn FRAC_2_PI() -> Self

Return 2.0 / π.
source§

fn FRAC_2_SQRT_PI() -> Self

Return 2.0 / sqrt(π).
source§

fn FRAC_PI_2() -> Self

Return π / 2.0.
source§

fn FRAC_PI_3() -> Self

Return π / 3.0.
source§

fn FRAC_PI_4() -> Self

Return π / 4.0.
source§

fn FRAC_PI_6() -> Self

Return π / 6.0.
source§

fn FRAC_PI_8() -> Self

Return π / 8.0.
source§

fn LN_10() -> Self

Return ln(10.0).
source§

fn LN_2() -> Self

Return ln(2.0).
source§

fn LOG10_E() -> Self

Return log10(e).
source§

fn LOG2_E() -> Self

Return log2(e).
source§

fn PI() -> Self

Return Archimedes’ constant π.
source§

fn SQRT_2() -> Self

Return sqrt(2.0).
source§

fn TAU() -> Self
where Self: Sized + Add<Output = Self>,

Return the full circle constant τ.
source§

fn LOG10_2() -> Self
where Self: Sized + Div<Output = Self>,

Return log10(2.0).
source§

fn LOG2_10() -> Self
where Self: Sized + Div<Output = Self>,

Return log2(10.0).
source§

impl<T: DualNum<F>, F> From<F> for Dual3<T, F>

source§

fn from(float: F) -> Self

Converts to this type from the input type.
source§

impl<T: DualNum<F>, F: Float + FromPrimitive> FromPrimitive for Dual3<T, F>

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

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§

impl<T: DualNum<F>, F: DualNumFloat> Inv for Dual3<T, F>

§

type Output = Dual3<T, F>

The result after applying the operator.
source§

fn inv(self) -> Self

Returns the multiplicative inverse of self. Read more
source§

impl<'a, 'b, T: DualNum<F>, F: Float> Mul<&'a Dual3<T, F>> for &'b Dual3<T, F>

§

type Output = Dual3<T, F>

The resulting type after applying the * operator.
source§

fn mul(self, rhs: &Dual3<T, F>) -> Dual3<T, F>

Performs the * operation. Read more
source§

impl<T: DualNum<F>, F: Float> Mul<&Dual3<T, F>> for Dual3<T, F>

§

type Output = Dual3<T, F>

The resulting type after applying the * operator.
source§

fn mul(self, rhs: &Dual3<T, F>) -> Self::Output

Performs the * operation. Read more
source§

impl<T: DualNum<F>, F: Float> Mul<Dual3<T, F>> for &Dual3<T, F>

§

type Output = Dual3<T, F>

The resulting type after applying the * operator.
source§

fn mul(self, rhs: Dual3<T, F>) -> Self::Output

Performs the * operation. Read more
source§

impl<T: DualNum<F>, F: DualNumFloat> Mul<F> for Dual3<T, F>

§

type Output = Dual3<T, F>

The resulting type after applying the * operator.
source§

fn mul(self, other: F) -> Self

Performs the * operation. Read more
source§

impl<T: DualNum<F>, F: Float> Mul for Dual3<T, F>

§

type Output = Dual3<T, F>

The resulting type after applying the * operator.
source§

fn mul(self, rhs: Dual3<T, F>) -> Self::Output

Performs the * operation. Read more
source§

impl<T: DualNum<F>, F: DualNumFloat> MulAssign<F> for Dual3<T, F>

source§

fn mul_assign(&mut self, other: F)

Performs the *= operation. Read more
source§

impl<T: DualNum<F>, F: Float> MulAssign for Dual3<T, F>

source§

fn mul_assign(&mut self, other: Self)

Performs the *= operation. Read more
source§

impl<T: DualNum<F>, F: Float> Neg for &Dual3<T, F>

§

type Output = Dual3<T, F>

The resulting type after applying the - operator.
source§

fn neg(self) -> Self::Output

Performs the unary - operation. Read more
source§

impl<T: DualNum<F>, F: Float> Neg for Dual3<T, F>

§

type Output = Dual3<T, F>

The resulting type after applying the - operator.
source§

fn neg(self) -> Self

Performs the unary - operation. Read more
source§

impl<T: DualNum<F> + Signed, F: Float> Num for Dual3<T, F>

§

type FromStrRadixErr = <F 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<T: DualNum<F>, F: Float> One for Dual3<T, F>

source§

fn one() -> Self

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

fn is_one(&self) -> bool

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

fn set_one(&mut self)

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

impl<T: PartialEq, F: PartialEq> PartialEq for Dual3<T, F>

source§

fn eq(&self, other: &Dual3<T, F>) -> bool

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

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

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

impl<'a, T: DualNum<F>, F: Float> Product<&'a Dual3<T, F>> for Dual3<T, F>

source§

fn product<I>(iter: I) -> Self
where I: Iterator<Item = &'a Dual3<T, F>>,

Method which takes an iterator and generates Self from the elements by multiplying the items.
source§

impl<T: DualNum<F>, F: Float> Product for Dual3<T, F>

source§

fn product<I>(iter: I) -> Self
where I: Iterator<Item = Self>,

Method which takes an iterator and generates Self from the elements by multiplying the items.
source§

impl<'a, 'b, T: DualNum<F>, F> Rem<&'a Dual3<T, F>> for &'b Dual3<T, F>

§

type Output = Dual3<T, F>

The resulting type after applying the % operator.
source§

fn rem(self, _other: &Dual3<T, F>) -> Dual3<T, F>

Performs the % operation. Read more
source§

impl<T: DualNum<F>, F: Float> Rem<&Dual3<T, F>> for Dual3<T, F>

§

type Output = Dual3<T, F>

The resulting type after applying the % operator.
source§

fn rem(self, rhs: &Dual3<T, F>) -> Self::Output

Performs the % operation. Read more
source§

impl<T: DualNum<F>, F: Float> Rem<Dual3<T, F>> for &Dual3<T, F>

§

type Output = Dual3<T, F>

The resulting type after applying the % operator.
source§

fn rem(self, rhs: Dual3<T, F>) -> Self::Output

Performs the % operation. Read more
source§

impl<T: DualNum<F>, F> Rem<F> for Dual3<T, F>

§

type Output = Dual3<T, F>

The resulting type after applying the % operator.
source§

fn rem(self, _other: F) -> Self

Performs the % operation. Read more
source§

impl<T: DualNum<F>, F: Float> Rem for Dual3<T, F>

§

type Output = Dual3<T, F>

The resulting type after applying the % operator.
source§

fn rem(self, rhs: Dual3<T, F>) -> Self::Output

Performs the % operation. Read more
source§

impl<T: DualNum<F>, F> RemAssign<F> for Dual3<T, F>

source§

fn rem_assign(&mut self, _other: F)

Performs the %= operation. Read more
source§

impl<T: DualNum<F>, F> RemAssign for Dual3<T, F>

source§

fn rem_assign(&mut self, _other: Self)

Performs the %= operation. Read more
source§

impl<T: DualNum<F>, F: DualNumFloat> Signed for Dual3<T, F>

source§

fn abs(&self) -> Self

Computes the absolute value. Read more
source§

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

The positive difference of two numbers. Read more
source§

fn signum(&self) -> Self

Returns the sign of the number. Read more
source§

fn is_positive(&self) -> bool

Returns true if the number is positive and false if the number is zero or negative.
source§

fn is_negative(&self) -> bool

Returns true if the number is negative and false if the number is zero or positive.
source§

impl<'a, 'b, T: DualNum<F>, F: Float> Sub<&'a Dual3<T, F>> for &'b Dual3<T, F>

§

type Output = Dual3<T, F>

The resulting type after applying the - operator.
source§

fn sub(self, other: &Dual3<T, F>) -> Dual3<T, F>

Performs the - operation. Read more
source§

impl<T: DualNum<F>, F: Float> Sub<&Dual3<T, F>> for Dual3<T, F>

§

type Output = Dual3<T, F>

The resulting type after applying the - operator.
source§

fn sub(self, rhs: &Dual3<T, F>) -> Self::Output

Performs the - operation. Read more
source§

impl<T: DualNum<F>, F: Float> Sub<Dual3<T, F>> for &Dual3<T, F>

§

type Output = Dual3<T, F>

The resulting type after applying the - operator.
source§

fn sub(self, rhs: Dual3<T, F>) -> Self::Output

Performs the - operation. Read more
source§

impl<T: DualNum<F>, F> Sub<F> for Dual3<T, F>

§

type Output = Dual3<T, F>

The resulting type after applying the - operator.
source§

fn sub(self, other: F) -> Self

Performs the - operation. Read more
source§

impl<T: DualNum<F>, F: Float> Sub for Dual3<T, F>

§

type Output = Dual3<T, F>

The resulting type after applying the - operator.
source§

fn sub(self, rhs: Dual3<T, F>) -> Self::Output

Performs the - operation. Read more
source§

impl<T: DualNum<F>, F> SubAssign<F> for Dual3<T, F>

source§

fn sub_assign(&mut self, other: F)

Performs the -= operation. Read more
source§

impl<T: DualNum<F>, F> SubAssign for Dual3<T, F>

source§

fn sub_assign(&mut self, other: Self)

Performs the -= operation. Read more
source§

impl<'a, T: DualNum<F>, F: Float> Sum<&'a Dual3<T, F>> for Dual3<T, F>

source§

fn sum<I>(iter: I) -> Self
where I: Iterator<Item = &'a Dual3<T, F>>,

Method which takes an iterator and generates Self from the elements by “summing up” the items.
source§

impl<T: DualNum<F>, F: Float> Sum for Dual3<T, F>

source§

fn sum<I>(iter: I) -> Self
where I: Iterator<Item = Self>,

Method which takes an iterator and generates Self from the elements by “summing up” the items.
source§

impl<T: DualNum<F>, F: Float> Zero for Dual3<T, F>

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<T: Copy, F: Copy> Copy for Dual3<T, F>

source§

impl<T: Eq, F: Eq> Eq for Dual3<T, F>

source§

impl<T, F> StructuralPartialEq for Dual3<T, F>

Auto Trait Implementations§

§

impl<T, F> Freeze for Dual3<T, F>
where T: Freeze,

§

impl<T, F> RefUnwindSafe for Dual3<T, F>

§

impl<T, F> Send for Dual3<T, F>
where T: Send, F: Send,

§

impl<T, F> Sync for Dual3<T, F>
where T: Sync, F: Sync,

§

impl<T, F> Unpin for Dual3<T, F>
where T: Unpin, F: Unpin,

§

impl<T, F> UnwindSafe for Dual3<T, F>
where T: UnwindSafe, F: UnwindSafe,

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> BesselDual for T
where T: DualNum<f64> + Copy,

source§

fn bessel_j0(self) -> Self

0th order bessel function of the first kind
source§

fn bessel_j1(self) -> Self

1st order bessel function of the first kind
source§

fn bessel_j2(self) -> Self

2nd order bessel function of the first kind
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> From<!> for T

source§

fn from(t: !) -> T

Converts to this type from the input type.
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<T> Same for T

§

type Output = T

Should always be Self
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,

§

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> ToString for T
where T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

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>,

§

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>,

source§

impl<T> NumRef for T
where T: Num + for<'r> NumOps<&'r T>,

source§

impl<T, Base> RefNum<Base> for T
where T: NumOps<Base, Base> + for<'r> NumOps<&'r Base, Base>,

source§

impl<T> Scalar for T
where T: 'static + Clone + PartialEq + Debug,