ComplexValidated

Struct ComplexValidated 

Source
pub struct ComplexValidated<K: NumKernel> { /* private fields */ }
Expand description

A validated complex number that is guaranteed to conform to a specific NumKernel.

Trait Implementations§

Source§

impl<K: NumKernel> ACos for ComplexValidated<K>

Source§

type Error = FunctionErrors<ACosComplexInputErrors<<<ComplexValidated<K> as TryNewValidated>::Policy as ValidationPolicy>::Value>, <<<ComplexValidated<K> as TryNewValidated>::Policy as ValidationPolicy>::Value as RawScalarTrait>::ValidationErrors>

The error type that is returned by the try_acos method.
Source§

fn try_acos(self) -> Result<Self, Self::Error>

Computes the inverse cosine of self and returns a Result. Read more
Source§

fn acos(self) -> Self

Computes and returns the inverse cosine of self. Read more
Source§

impl<K: NumKernel> ACosH for ComplexValidated<K>

Source§

type Error = FunctionErrors<ACosHInputErrors<<<ComplexValidated<K> as TryNewValidated>::Policy as ValidationPolicy>::Value>, <<<ComplexValidated<K> as TryNewValidated>::Policy as ValidationPolicy>::Value as RawScalarTrait>::ValidationErrors>

The error type that is returned by the try_acosh method.
Source§

fn try_acosh(self) -> Result<Self, Self::Error>

Computes the inverse hyperbolic cosine of self and returns a Result. Read more
Source§

fn acosh(self) -> Self

Computes and returns the inverse hyperbolic cosine of self. Read more
Source§

impl<K: NumKernel> ASin for ComplexValidated<K>

Source§

type Error = FunctionErrors<ASinComplexInputErrors<<<ComplexValidated<K> as TryNewValidated>::Policy as ValidationPolicy>::Value>, <<<ComplexValidated<K> as TryNewValidated>::Policy as ValidationPolicy>::Value as RawScalarTrait>::ValidationErrors>

The error type that is returned by the try_asin method.
Source§

fn try_asin(self) -> Result<Self, Self::Error>

Computes the inverse sine of self and returns a Result. Read more
Source§

fn asin(self) -> Self

Computes and returns the inverse sine of self. Read more
Source§

impl<K: NumKernel> ASinH for ComplexValidated<K>

Source§

type Error = FunctionErrors<ASinHInputErrors<<<ComplexValidated<K> as TryNewValidated>::Policy as ValidationPolicy>::Value>, <<<ComplexValidated<K> as TryNewValidated>::Policy as ValidationPolicy>::Value as RawScalarTrait>::ValidationErrors>

The error type that is returned by the try_asinh method.
Source§

fn try_asinh(self) -> Result<Self, Self::Error>

Computes the inverse hyperbolic sine of self and returns a Result. Read more
Source§

fn asinh(self) -> Self

Computes and returns the inverse hyperbolic sine of self. Read more
Source§

impl<K: NumKernel> ATan for ComplexValidated<K>

Source§

type Error = FunctionErrors<ATanComplexInputErrors<<<ComplexValidated<K> as TryNewValidated>::Policy as ValidationPolicy>::Value>, <<<ComplexValidated<K> as TryNewValidated>::Policy as ValidationPolicy>::Value as RawScalarTrait>::ValidationErrors>

The error type that is returned by the try_atan method.
Source§

fn try_atan(self) -> Result<Self, Self::Error>

Computes the inverse tangent of self and returns a Result. Read more
Source§

fn atan(self) -> Self

Computes and returns the inverse tangent of self. Read more
Source§

impl<K: NumKernel> ATanH for ComplexValidated<K>

Source§

type Error = FunctionErrors<ATanHInputErrors<<<ComplexValidated<K> as TryNewValidated>::Policy as ValidationPolicy>::Value>, <<<ComplexValidated<K> as TryNewValidated>::Policy as ValidationPolicy>::Value as RawScalarTrait>::ValidationErrors>

The error type that is returned by the try_atanh method.
Source§

fn try_atanh(self) -> Result<Self, Self::Error>

Computes the inverse hyperbolic tangent of self and returns a Result. Read more
Source§

fn atanh(self) -> Self

Computes and returns the inverse hyperbolic tangent of self. Read more
Source§

impl<K: NumKernel> Abs for ComplexValidated<K>

Source§

fn abs(self) -> Self::Output

Returns the absolute value of self.

Source§

type Output = RealValidated<K>

The output type of the absolute value function. Read more
Source§

type Error = FunctionErrors<AbsInputErrors<<<K as NumKernel>::ComplexPolicy as ValidationPolicy>::Value>, <<<<K as NumKernel>::ComplexPolicy as ValidationPolicy>::Value as RawComplexTrait>::RawReal as RawScalarTrait>::ValidationErrors>

The error type that can be returned by the try_abs method. Read more
Source§

fn try_abs(self) -> Result<Self::Output, Self::Error>

Attempts to compute the absolute value of self.
Source§

impl<'a, K: NumKernel> Add<&'a ComplexValidated<K>> for ComplexValidated<K>

Source§

type Output = ComplexValidated<K>

The resulting type after applying the + operator.
Source§

fn add(self, rhs: &'a Self) -> Self::Output

Performs the + operation. Read more
Source§

impl<'a, K: NumKernel> Add<&'a RealValidated<K>> for ComplexValidated<K>

Source§

type Output = ComplexValidated<K>

The resulting type after applying the + operator.
Source§

fn add(self, rhs: &'a RealValidated<K>) -> Self::Output

Performs the + operation. Read more
Source§

impl<'a, K: NumKernel> Add<ComplexValidated<K>> for &'a ComplexValidated<K>

Source§

type Output = ComplexValidated<K>

The resulting type after applying the + operator.
Source§

fn add(self, rhs: ComplexValidated<K>) -> Self::Output

Performs the + operation. Read more
Source§

impl<K: NumKernel> Add<RealValidated<K>> for ComplexValidated<K>

Source§

type Output = ComplexValidated<K>

The resulting type after applying the + operator.
Source§

fn add(self, rhs: RealValidated<K>) -> Self::Output

Performs the + operation. Read more
Source§

impl<'a, K: NumKernel> Add for &'a ComplexValidated<K>

Source§

type Output = ComplexValidated<K>

The resulting type after applying the + operator.
Source§

fn add(self, rhs: &'a ComplexValidated<K>) -> Self::Output

Performs the + operation. Read more
Source§

impl<K: NumKernel> Add for ComplexValidated<K>

Source§

type Output = ComplexValidated<K>

The resulting type after applying the + operator.
Source§

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

Performs the + operation. Read more
Source§

impl<'a, K: NumKernel> AddAssign<&'a ComplexValidated<K>> for ComplexValidated<K>

Source§

fn add_assign(&mut self, rhs: &'a Self)

Performs the += operation. Read more
Source§

impl<'a, K: NumKernel> AddAssign<&'a RealValidated<K>> for ComplexValidated<K>

Source§

fn add_assign(&mut self, rhs: &'a RealValidated<K>)

Performs the += operation. Read more
Source§

impl<K: NumKernel> AddAssign<RealValidated<K>> for ComplexValidated<K>

Source§

fn add_assign(&mut self, rhs: RealValidated<K>)

Performs the += operation. Read more
Source§

impl<K: NumKernel> AddAssign for ComplexValidated<K>

Source§

fn add_assign(&mut self, rhs: Self)

Performs the += operation. Read more
Source§

impl<K: NumKernel> Arg for ComplexValidated<K>

Source§

type Output = RealValidated<K>

The return type of the principal value (or argument) function. It is always a real number.
Source§

type Error = FunctionErrors<ArgInputErrors<<K as RawKernel>::RawComplex>, <<<K as RawKernel>::RawComplex as RawComplexTrait>::RawReal as RawScalarTrait>::ValidationErrors>

The error type that can be returned by the Arg::try_arg() method. Read more
Source§

fn try_arg(self) -> Result<Self::Output, Self::Error>

Attempts to compute the argument of self, returning a Result.
Source§

fn arg(self) -> RealValidated<K>

Returns the argument of self.
Source§

impl<K: NumKernel> AsRef<<K as RawKernel>::RawComplex> for ComplexValidated<K>

Source§

fn as_ref(&self) -> &K::RawComplex

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl<K: NumKernel> Clone for ComplexValidated<K>

Source§

fn clone(&self) -> Self

Returns a duplicate 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<K: NumKernel> ComplexScalar for ComplexValidated<K>

Source§

fn scale(self, c: &Self::RealType) -> Self

Scale the complex number self by the real coefficient c. Read more
Source§

fn scale_mut(&mut self, c: &Self::RealType)

Scale (in-place) the complex number self by the real coefficient c. Read more
Source§

impl<K: NumKernel> ComplexScalarConstructors for ComplexValidated<K>

Implement the ComplexScalarConstructors trait for the ComplexValidated type.

Source§

type RawComplex = <K as RawKernel>::RawComplex

The raw underlying complex type (e.g., num::Complex<f64> or rug::Complex).
Source§

fn try_new_complex( real_part: K::RawReal, imag_part: K::RawReal, ) -> Result<Self, <Self::RawComplex as RawScalarTrait>::ValidationErrors>

Tries to create a new complex scalar from its raw real and imaginary parts.
Source§

fn new_complex(real: Self::RealType, imag: Self::RealType) -> Self

Creates a new complex scalar from its (validated) real and imaginary parts.
Source§

fn try_new_pure_real( real_part: <Self::RawComplex as RawComplexTrait>::RawReal, ) -> Result<Self, <Self::RawComplex as RawScalarTrait>::ValidationErrors>

Tries to create a new complex scalar from a raw real part, with a zero imaginary part.
Source§

fn try_new_pure_imaginary( imag_part: <Self::RawComplex as RawComplexTrait>::RawReal, ) -> Result<Self, <Self::RawComplex as RawScalarTrait>::ValidationErrors>

Tries to create a new complex scalar from a raw imaginary part, with a zero real part.
Source§

fn new_pure_real(real_part: Self::RealType) -> Self

Source§

fn new_pure_imaginary(imag_part: Self::RealType) -> Self

Source§

impl<K: NumKernel> ComplexScalarGetParts for ComplexValidated<K>

Implement the ComplexScalarGetParts trait for the ComplexValidated type.

Source§

fn real_part(&self) -> RealValidated<K>

Get the real part of the complex number.

Source§

fn imag_part(&self) -> RealValidated<K>

Get the imaginary part of the complex number.

Source§

fn raw_real_part(&self) -> &K::RawReal

Returns a reference to the raw real part of the complex number.
Source§

fn raw_imag_part(&self) -> &K::RawReal

Returns a reference to the raw imaginary part of the complex number.
Source§

fn is_pure_real(&self) -> bool

Returns true if the complex number is purely real (i.e., has no imaginary part). Read more
Source§

fn is_pure_imaginary(&self) -> bool

Returns true if the complex number is purely imaginary (i.e., has zero real part and non-zero imaginary part). Read more
Source§

impl<K: NumKernel> ComplexScalarMutateParts for ComplexValidated<K>

Implement the ComplexScalarMutateParts trait for the ComplexValidated type.

Source§

fn add_to_real_part(&mut self, c: &RealValidated<K>)

Add the value of the the real coefficient c to real part of self.

Source§

fn add_to_imaginary_part(&mut self, c: &RealValidated<K>)

Add the value of the the real coefficient c to imaginary part of self.

Source§

fn multiply_real_part(&mut self, c: &RealValidated<K>)

Multiply the value of the real part by the real coefficient c.

Source§

fn multiply_imaginary_part(&mut self, c: &RealValidated<K>)

Multiply the value of the imaginary part by the real coefficient c.

Source§

impl<K: NumKernel> ComplexScalarSetParts for ComplexValidated<K>

Implement the ComplexScalarSetParts trait for the ComplexValidated type.

Source§

fn set_real_part(&mut self, real_part: RealValidated<K>)

Set the value of the real part.

Source§

fn set_imaginary_part(&mut self, imag_part: RealValidated<K>)

Set the value of the imaginary part.

Source§

fn with_real_part(self, real_part: Self::RealType) -> Self

Returns a new complex number with the real part set to the given value and the imaginary part from self.
Source§

fn with_imaginary_part(self, imag_part: Self::RealType) -> Self

Returns a new complex number with the imaginary part set to the given value and the real part from self.
Source§

impl<K: NumKernel> Conjugate for ComplexValidated<K>

Source§

fn conjugate(self) -> Self

Returns the complex conjugate of self.
Source§

impl<K: NumKernel> Cos for ComplexValidated<K>

Source§

type Error = FunctionErrors<CosInputErrors<<<ComplexValidated<K> as TryNewValidated>::Policy as ValidationPolicy>::Value>, <<<ComplexValidated<K> as TryNewValidated>::Policy as ValidationPolicy>::Value as RawScalarTrait>::ValidationErrors>

The error type that is returned by the try_cos method.
Source§

fn try_cos(self) -> Result<Self, Self::Error>

Computes the cosine of self and returns a Result. Read more
Source§

fn cos(self) -> Self

Computes and returns the cosine of self. Read more
Source§

impl<K: NumKernel> CosH for ComplexValidated<K>

Source§

type Error = FunctionErrors<CosHInputErrors<<<ComplexValidated<K> as TryNewValidated>::Policy as ValidationPolicy>::Value>, <<<ComplexValidated<K> as TryNewValidated>::Policy as ValidationPolicy>::Value as RawScalarTrait>::ValidationErrors>

The error type that is returned by the try_cosh method.
Source§

fn try_cosh(self) -> Result<Self, Self::Error>

Computes the hyperbolic cosine of self and returns a Result. Read more
Source§

fn cosh(self) -> Self

Computes and returns the hyperbolic cosine of self. Read more
Source§

impl<K: NumKernel> Debug for ComplexValidated<K>

Source§

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

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

impl<'de, K: NumKernel> Deserialize<'de> for ComplexValidated<K>
where K::RawComplex: Deserialize<'de>,

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl<K: NumKernel> Display for ComplexValidated<K>
where K::RawComplex: Display,

Source§

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

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

impl<K: NumKernel> Distribution<ComplexValidated<K>> for StandardUniform

Implement the Distribution trait for ComplexValidated type using the StandardUniform distribution.

Source§

fn sample<R: Rng + ?Sized>(&self, rng: &mut R) -> ComplexValidated<K>

Generate a random value of T, using rng as the source of randomness.
Source§

fn sample_iter<R>(self, rng: R) -> Iter<Self, R, T>
where R: Rng, Self: Sized,

Create an iterator that generates random values of T, using rng as the source of randomness. Read more
Source§

fn map<F, S>(self, func: F) -> Map<Self, F, T, S>
where F: Fn(T) -> S, Self: Sized,

Map sampled values to type S Read more
Source§

impl<'a, K: NumKernel> Div<&'a ComplexValidated<K>> for ComplexValidated<K>

Source§

type Output = ComplexValidated<K>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: &'a Self) -> Self::Output

Performs the / operation. Read more
Source§

impl<'a, K: NumKernel> Div<&'a RealValidated<K>> for ComplexValidated<K>

Source§

type Output = ComplexValidated<K>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: &'a RealValidated<K>) -> Self::Output

Performs the / operation. Read more
Source§

impl<'a, K: NumKernel> Div<ComplexValidated<K>> for &'a ComplexValidated<K>

Source§

type Output = ComplexValidated<K>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: ComplexValidated<K>) -> Self::Output

Performs the / operation. Read more
Source§

impl<K: NumKernel> Div<RealValidated<K>> for ComplexValidated<K>

Source§

type Output = ComplexValidated<K>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: RealValidated<K>) -> Self::Output

Performs the / operation. Read more
Source§

impl<'a, K: NumKernel> Div for &'a ComplexValidated<K>

Source§

type Output = ComplexValidated<K>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: &'a ComplexValidated<K>) -> Self::Output

Performs the / operation. Read more
Source§

impl<K: NumKernel> Div for ComplexValidated<K>

Source§

type Output = ComplexValidated<K>

The resulting type after applying the / operator.
Source§

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

Performs the / operation. Read more
Source§

impl<'a, K: NumKernel> DivAssign<&'a ComplexValidated<K>> for ComplexValidated<K>

Source§

fn div_assign(&mut self, rhs: &'a Self)

Performs the /= operation. Read more
Source§

impl<'a, K: NumKernel> DivAssign<&'a RealValidated<K>> for ComplexValidated<K>

Source§

fn div_assign(&mut self, rhs: &'a RealValidated<K>)

Performs the /= operation. Read more
Source§

impl<K: NumKernel> DivAssign<RealValidated<K>> for ComplexValidated<K>

Source§

fn div_assign(&mut self, rhs: RealValidated<K>)

Performs the /= operation. Read more
Source§

impl<K: NumKernel> DivAssign for ComplexValidated<K>

Source§

fn div_assign(&mut self, rhs: Self)

Performs the /= operation. Read more
Source§

impl<K: NumKernel> Exp for ComplexValidated<K>

Source§

type Error = FunctionErrors<ExpInputErrors<<<ComplexValidated<K> as TryNewValidated>::Policy as ValidationPolicy>::Value>, <<<ComplexValidated<K> as TryNewValidated>::Policy as ValidationPolicy>::Value as RawScalarTrait>::ValidationErrors>

The error type that can be returned by the try_exp method. Read more
Source§

fn try_exp(self) -> Result<Self, Self::Error>

Attempts to compute the exponential of self (e^self), returning a Result.
Source§

fn exp(self) -> Self

Computes and returns the exponential of self.
Source§

impl<K: NumKernel> FpChecks for ComplexValidated<K>

Source§

fn is_finite(&self) -> bool

Returns true if self is neither infinite nor NaN.

Source§

fn is_infinite(&self) -> bool

Returns true if self is positive infinity or negative infinity, and false otherwise.

Source§

fn is_nan(&self) -> bool

Returns true if self is NaN.

Source§

fn is_normal(&self) -> bool

Returns true if self is normal (i.e. neither zero, infinite, subnormal, or NaN).

Source§

impl<K: NumKernel> FpScalar for ComplexValidated<K>

Source§

fn as_raw_ref(&self) -> &Self::InnerType

Returns a reference to the underlying raw complex value.

Source§

type Kind = Complex

The kind of scalar this is, e.g., Real or Complex. This is a sealed trait to prevent external implementations.
Source§

type RealType = RealValidated<K>

The real number type corresponding to this scalar. Read more
Source§

impl<K: NumKernel> IntoInner for ComplexValidated<K>

Source§

type InnerType = <K as RawKernel>::RawComplex

The type of the inner value that will be extracted.
Source§

fn into_inner(self) -> Self::InnerType

Consumes the wrapper and returns the inner value.
Source§

impl<K: NumKernel> Ln for ComplexValidated<K>

Source§

type Error = FunctionErrors<LogarithmComplexInputErrors<<<ComplexValidated<K> as TryNewValidated>::Policy as ValidationPolicy>::Value>, <<<ComplexValidated<K> as TryNewValidated>::Policy as ValidationPolicy>::Value as RawScalarTrait>::ValidationErrors>

The error type that is returned by the try_ln method.
Source§

fn try_ln(self) -> Result<Self, Self::Error>

Computes the natural logarithm of self and returns a Result. Read more
Source§

fn ln(self) -> Self

Computes the natural logarithm of self and directly returns the computed value. Read more
Source§

impl<K: NumKernel> Log10 for ComplexValidated<K>

Source§

type Error = FunctionErrors<LogarithmComplexInputErrors<<<ComplexValidated<K> as TryNewValidated>::Policy as ValidationPolicy>::Value>, <<<ComplexValidated<K> as TryNewValidated>::Policy as ValidationPolicy>::Value as RawScalarTrait>::ValidationErrors>

The error type that is returned by the try_log10 method.
Source§

fn try_log10(self) -> Result<Self, Self::Error>

Computes the base-10 logarithm of self and returns a Result. Read more
Source§

fn log10(self) -> Self

Computes the base-10 logarithm of self and directly returns the computed value. Read more
Source§

impl<K: NumKernel> Log2 for ComplexValidated<K>

Source§

type Error = FunctionErrors<LogarithmComplexInputErrors<<<ComplexValidated<K> as TryNewValidated>::Policy as ValidationPolicy>::Value>, <<<ComplexValidated<K> as TryNewValidated>::Policy as ValidationPolicy>::Value as RawScalarTrait>::ValidationErrors>

The error type that is returned by the try_log2 method.
Source§

fn try_log2(self) -> Result<Self, Self::Error>

Computes the base-2 logarithm of self and returns a Result. Read more
Source§

fn log2(self) -> Self

Computes the base-2 logarithm of self and directly returns the computed value. Read more
Source§

impl<K: NumKernel> LowerExp for ComplexValidated<K>
where K::RawComplex: Display,

Source§

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

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

impl<'a, K: NumKernel> Mul<&'a ComplexValidated<K>> for ComplexValidated<K>

Source§

type Output = ComplexValidated<K>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &'a Self) -> Self::Output

Performs the * operation. Read more
Source§

impl<'a, K: NumKernel> Mul<&'a RealValidated<K>> for ComplexValidated<K>

Source§

type Output = ComplexValidated<K>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &'a RealValidated<K>) -> Self::Output

Performs the * operation. Read more
Source§

impl<'a, K: NumKernel> Mul<ComplexValidated<K>> for &'a ComplexValidated<K>

Source§

type Output = ComplexValidated<K>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: ComplexValidated<K>) -> Self::Output

Performs the * operation. Read more
Source§

impl<'a, K: NumKernel> Mul<ComplexValidated<K>> for &'a RealValidated<K>

Source§

type Output = ComplexValidated<K>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: ComplexValidated<K>) -> Self::Output

Performs the * operation. Read more
Source§

impl<K: NumKernel> Mul<ComplexValidated<K>> for RealValidated<K>

Source§

type Output = ComplexValidated<K>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: ComplexValidated<K>) -> Self::Output

Performs the * operation. Read more
Source§

impl<K: NumKernel> Mul<RealValidated<K>> for ComplexValidated<K>

Source§

type Output = ComplexValidated<K>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: RealValidated<K>) -> Self::Output

Performs the * operation. Read more
Source§

impl<'a, K: NumKernel> Mul for &'a ComplexValidated<K>

Source§

type Output = ComplexValidated<K>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &'a ComplexValidated<K>) -> Self::Output

Performs the * operation. Read more
Source§

impl<K: NumKernel> Mul for ComplexValidated<K>

Source§

type Output = ComplexValidated<K>

The resulting type after applying the * operator.
Source§

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

Performs the * operation. Read more
Source§

impl<K: NumKernel> MulAddRef for ComplexValidated<K>

Source§

fn mul_add_ref(self, b: &Self, c: &Self) -> Self

Multiplies and adds in one fused operation, rounding to the nearest with only one rounding error.

a.mul_add(b, c) produces a result like a * &b + &c.

Source§

impl<'a, K: NumKernel> MulAssign<&'a ComplexValidated<K>> for ComplexValidated<K>

Source§

fn mul_assign(&mut self, rhs: &'a Self)

Performs the *= operation. Read more
Source§

impl<'a, K: NumKernel> MulAssign<&'a RealValidated<K>> for ComplexValidated<K>

Source§

fn mul_assign(&mut self, rhs: &'a RealValidated<K>)

Performs the *= operation. Read more
Source§

impl<K: NumKernel> MulAssign<RealValidated<K>> for ComplexValidated<K>

Source§

fn mul_assign(&mut self, rhs: RealValidated<K>)

Performs the *= operation. Read more
Source§

impl<K: NumKernel> MulAssign for ComplexValidated<K>

Source§

fn mul_assign(&mut self, rhs: Self)

Performs the *= operation. Read more
Source§

impl<K: NumKernel> Neg for ComplexValidated<K>

Source§

type Output = ComplexValidated<K>

The resulting type after applying the - operator.
Source§

fn neg(self) -> Self::Output

Performs the unary - operation. Read more
Source§

impl<K: NumKernel> NegAssign for ComplexValidated<K>

Source§

fn neg_assign(&mut self)

Performs the negation of self.

Source§

impl<K: NumKernel> NeumaierAddable for ComplexValidated<K>

Source§

fn neumaier_compensated_sum( value: Self, sum: &mut Self, compensation: &mut Self, )

Source§

impl<K: NumKernel> New for ComplexValidated<K>

Source§

fn new(value: Self::InnerType) -> Self

Creates a new instance of Self from value. Read more
Source§

impl<K: NumKernel> One for ComplexValidated<K>

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<K: NumKernel> PartialEq for ComplexValidated<K>

Source§

fn eq(&self, other: &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<K: NumKernel> Pow<&RealValidated<K>> for ComplexValidated<K>

Source§

fn pow(self, exponent: &RealValidated<K>) -> Self

Raises th number self to the power exponent.

Source§

type Error = PowComplexBaseRealExponentErrors<<K as RawKernel>::RawComplex>

The error type that can be returned by the try_pow method. This type must implement std::error::Error for proper error handling.
Source§

fn try_pow(self, exponent: &RealValidated<K>) -> Result<Self, Self::Error>

Attempts to compute self (the base) raised to the power of exponent. Read more
Source§

impl<K: NumKernel> Pow<i128> for ComplexValidated<K>

Source§

fn pow(self, exponent: i128) -> Self

Raises th number self to the power exponent.

Source§

type Error = FunctionErrors<PowIntExponentInputErrors<<<ComplexValidated<K> as TryNewValidated>::Policy as ValidationPolicy>::Value, i128>, <<<ComplexValidated<K> as TryNewValidated>::Policy as ValidationPolicy>::Value as RawScalarTrait>::ValidationErrors>

The error type that can be returned by the try_pow method. This type must implement std::error::Error for proper error handling.
Source§

fn try_pow(self, exponent: i128) -> Result<Self, Self::Error>

Attempts to compute self (the base) raised to the power of exponent. Read more
Source§

impl<K: NumKernel> Pow<i16> for ComplexValidated<K>

Source§

fn pow(self, exponent: i16) -> Self

Raises th number self to the power exponent.

Source§

type Error = FunctionErrors<PowIntExponentInputErrors<<<ComplexValidated<K> as TryNewValidated>::Policy as ValidationPolicy>::Value, i16>, <<<ComplexValidated<K> as TryNewValidated>::Policy as ValidationPolicy>::Value as RawScalarTrait>::ValidationErrors>

The error type that can be returned by the try_pow method. This type must implement std::error::Error for proper error handling.
Source§

fn try_pow(self, exponent: i16) -> Result<Self, Self::Error>

Attempts to compute self (the base) raised to the power of exponent. Read more
Source§

impl<K: NumKernel> Pow<i32> for ComplexValidated<K>

Source§

fn pow(self, exponent: i32) -> Self

Raises th number self to the power exponent.

Source§

type Error = FunctionErrors<PowIntExponentInputErrors<<<ComplexValidated<K> as TryNewValidated>::Policy as ValidationPolicy>::Value, i32>, <<<ComplexValidated<K> as TryNewValidated>::Policy as ValidationPolicy>::Value as RawScalarTrait>::ValidationErrors>

The error type that can be returned by the try_pow method. This type must implement std::error::Error for proper error handling.
Source§

fn try_pow(self, exponent: i32) -> Result<Self, Self::Error>

Attempts to compute self (the base) raised to the power of exponent. Read more
Source§

impl<K: NumKernel> Pow<i64> for ComplexValidated<K>

Source§

fn pow(self, exponent: i64) -> Self

Raises th number self to the power exponent.

Source§

type Error = FunctionErrors<PowIntExponentInputErrors<<<ComplexValidated<K> as TryNewValidated>::Policy as ValidationPolicy>::Value, i64>, <<<ComplexValidated<K> as TryNewValidated>::Policy as ValidationPolicy>::Value as RawScalarTrait>::ValidationErrors>

The error type that can be returned by the try_pow method. This type must implement std::error::Error for proper error handling.
Source§

fn try_pow(self, exponent: i64) -> Result<Self, Self::Error>

Attempts to compute self (the base) raised to the power of exponent. Read more
Source§

impl<K: NumKernel> Pow<i8> for ComplexValidated<K>

Source§

fn pow(self, exponent: i8) -> Self

Raises th number self to the power exponent.

Source§

type Error = FunctionErrors<PowIntExponentInputErrors<<<ComplexValidated<K> as TryNewValidated>::Policy as ValidationPolicy>::Value, i8>, <<<ComplexValidated<K> as TryNewValidated>::Policy as ValidationPolicy>::Value as RawScalarTrait>::ValidationErrors>

The error type that can be returned by the try_pow method. This type must implement std::error::Error for proper error handling.
Source§

fn try_pow(self, exponent: i8) -> Result<Self, Self::Error>

Attempts to compute self (the base) raised to the power of exponent. Read more
Source§

impl<K: NumKernel> Pow<isize> for ComplexValidated<K>

Source§

fn pow(self, exponent: isize) -> Self

Raises th number self to the power exponent.

Source§

type Error = FunctionErrors<PowIntExponentInputErrors<<<ComplexValidated<K> as TryNewValidated>::Policy as ValidationPolicy>::Value, isize>, <<<ComplexValidated<K> as TryNewValidated>::Policy as ValidationPolicy>::Value as RawScalarTrait>::ValidationErrors>

The error type that can be returned by the try_pow method. This type must implement std::error::Error for proper error handling.
Source§

fn try_pow(self, exponent: isize) -> Result<Self, Self::Error>

Attempts to compute self (the base) raised to the power of exponent. Read more
Source§

impl<K: NumKernel> Pow<u128> for ComplexValidated<K>

Source§

fn pow(self, exponent: u128) -> Self

Raises th number self to the power exponent.

Source§

type Error = FunctionErrors<PowIntExponentInputErrors<<<ComplexValidated<K> as TryNewValidated>::Policy as ValidationPolicy>::Value, u128>, <<<ComplexValidated<K> as TryNewValidated>::Policy as ValidationPolicy>::Value as RawScalarTrait>::ValidationErrors>

The error type that can be returned by the try_pow method. This type must implement std::error::Error for proper error handling.
Source§

fn try_pow(self, exponent: u128) -> Result<Self, Self::Error>

Attempts to compute self (the base) raised to the power of exponent. Read more
Source§

impl<K: NumKernel> Pow<u16> for ComplexValidated<K>

Source§

fn pow(self, exponent: u16) -> Self

Raises th number self to the power exponent.

Source§

type Error = FunctionErrors<PowIntExponentInputErrors<<<ComplexValidated<K> as TryNewValidated>::Policy as ValidationPolicy>::Value, u16>, <<<ComplexValidated<K> as TryNewValidated>::Policy as ValidationPolicy>::Value as RawScalarTrait>::ValidationErrors>

The error type that can be returned by the try_pow method. This type must implement std::error::Error for proper error handling.
Source§

fn try_pow(self, exponent: u16) -> Result<Self, Self::Error>

Attempts to compute self (the base) raised to the power of exponent. Read more
Source§

impl<K: NumKernel> Pow<u32> for ComplexValidated<K>

Source§

fn pow(self, exponent: u32) -> Self

Raises th number self to the power exponent.

Source§

type Error = FunctionErrors<PowIntExponentInputErrors<<<ComplexValidated<K> as TryNewValidated>::Policy as ValidationPolicy>::Value, u32>, <<<ComplexValidated<K> as TryNewValidated>::Policy as ValidationPolicy>::Value as RawScalarTrait>::ValidationErrors>

The error type that can be returned by the try_pow method. This type must implement std::error::Error for proper error handling.
Source§

fn try_pow(self, exponent: u32) -> Result<Self, Self::Error>

Attempts to compute self (the base) raised to the power of exponent. Read more
Source§

impl<K: NumKernel> Pow<u64> for ComplexValidated<K>

Source§

fn pow(self, exponent: u64) -> Self

Raises th number self to the power exponent.

Source§

type Error = FunctionErrors<PowIntExponentInputErrors<<<ComplexValidated<K> as TryNewValidated>::Policy as ValidationPolicy>::Value, u64>, <<<ComplexValidated<K> as TryNewValidated>::Policy as ValidationPolicy>::Value as RawScalarTrait>::ValidationErrors>

The error type that can be returned by the try_pow method. This type must implement std::error::Error for proper error handling.
Source§

fn try_pow(self, exponent: u64) -> Result<Self, Self::Error>

Attempts to compute self (the base) raised to the power of exponent. Read more
Source§

impl<K: NumKernel> Pow<u8> for ComplexValidated<K>

Source§

fn pow(self, exponent: u8) -> Self

Raises th number self to the power exponent.

Source§

type Error = FunctionErrors<PowIntExponentInputErrors<<<ComplexValidated<K> as TryNewValidated>::Policy as ValidationPolicy>::Value, u8>, <<<ComplexValidated<K> as TryNewValidated>::Policy as ValidationPolicy>::Value as RawScalarTrait>::ValidationErrors>

The error type that can be returned by the try_pow method. This type must implement std::error::Error for proper error handling.
Source§

fn try_pow(self, exponent: u8) -> Result<Self, Self::Error>

Attempts to compute self (the base) raised to the power of exponent. Read more
Source§

impl<K: NumKernel> Pow<usize> for ComplexValidated<K>

Source§

fn pow(self, exponent: usize) -> Self

Raises th number self to the power exponent.

Source§

type Error = FunctionErrors<PowIntExponentInputErrors<<<ComplexValidated<K> as TryNewValidated>::Policy as ValidationPolicy>::Value, usize>, <<<ComplexValidated<K> as TryNewValidated>::Policy as ValidationPolicy>::Value as RawScalarTrait>::ValidationErrors>

The error type that can be returned by the try_pow method. This type must implement std::error::Error for proper error handling.
Source§

fn try_pow(self, exponent: usize) -> Result<Self, Self::Error>

Attempts to compute self (the base) raised to the power of exponent. Read more
Source§

impl<K: NumKernel> PowIntExponent for ComplexValidated<K>

Source§

impl<K> RandomSampleFromF64 for ComplexValidated<K>
where K: NumKernel,

Source§

fn sample_from<D, R>(dist: &D, rng: &mut R) -> Self
where D: Distribution<f64>, R: Rng + ?Sized,

Samples a single value of Self using the given f64 distribution.
Source§

fn sample_iter_from<D, R>( dist: &D, rng: &mut R, n: usize, ) -> impl Iterator<Item = Self>
where D: Distribution<f64>, R: Rng + ?Sized,

Source§

impl<K: NumKernel> Reciprocal for ComplexValidated<K>

Source§

type Error = FunctionErrors<ReciprocalInputErrors<<<ComplexValidated<K> as TryNewValidated>::Policy as ValidationPolicy>::Value>, <<<ComplexValidated<K> as TryNewValidated>::Policy as ValidationPolicy>::Value as RawScalarTrait>::ValidationErrors>

The error type that can be returned by the try_reciprocal method. Read more
Source§

fn try_reciprocal(self) -> Result<Self, Self::Error>

Attempts to compute the reciprocal of self (1/self), returning a Result. Read more
Source§

fn reciprocal(self) -> Self

Returns the reciprocal of self (1/self).
Source§

impl<K: NumKernel> Serialize for ComplexValidated<K>

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl<K: NumKernel> Sin for ComplexValidated<K>

Source§

type Error = FunctionErrors<SinInputErrors<<<ComplexValidated<K> as TryNewValidated>::Policy as ValidationPolicy>::Value>, <<<ComplexValidated<K> as TryNewValidated>::Policy as ValidationPolicy>::Value as RawScalarTrait>::ValidationErrors>

The error type that is returned by the try_sin method.
Source§

fn try_sin(self) -> Result<Self, Self::Error>

Computes the sine of self and returns a Result. Read more
Source§

fn sin(self) -> Self

Computes and returns the sine of self. Read more
Source§

impl<K: NumKernel> SinH for ComplexValidated<K>

Source§

type Error = FunctionErrors<SinHInputErrors<<<ComplexValidated<K> as TryNewValidated>::Policy as ValidationPolicy>::Value>, <<<ComplexValidated<K> as TryNewValidated>::Policy as ValidationPolicy>::Value as RawScalarTrait>::ValidationErrors>

The error type that is returned by the try_sinh method.
Source§

fn try_sinh(self) -> Result<Self, Self::Error>

Computes the hyperbolic sine of self and returns a Result. Read more
Source§

fn sinh(self) -> Self

Computes and returns the hyperbolic sine of self. Read more
Source§

impl<K: NumKernel> Sqrt for ComplexValidated<K>

Source§

type Error = FunctionErrors<SqrtComplexInputErrors<<<ComplexValidated<K> as TryNewValidated>::Policy as ValidationPolicy>::Value>, <<<ComplexValidated<K> as TryNewValidated>::Policy as ValidationPolicy>::Value as RawScalarTrait>::ValidationErrors>

The error type that can be returned by the try_sqrt method.
Source§

fn try_sqrt(self) -> Result<Self, Self::Error>

Attempts to compute the principal square root of self, returning a Result. Read more
Source§

fn sqrt(self) -> Self

Computes the square principal square root of self.
Source§

impl<'a, K: NumKernel> Sub<&'a ComplexValidated<K>> for ComplexValidated<K>

Source§

type Output = ComplexValidated<K>

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: &'a Self) -> Self::Output

Performs the - operation. Read more
Source§

impl<'a, K: NumKernel> Sub<&'a RealValidated<K>> for ComplexValidated<K>

Source§

type Output = ComplexValidated<K>

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: &'a RealValidated<K>) -> Self::Output

Performs the - operation. Read more
Source§

impl<'a, K: NumKernel> Sub<ComplexValidated<K>> for &'a ComplexValidated<K>

Source§

type Output = ComplexValidated<K>

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: ComplexValidated<K>) -> Self::Output

Performs the - operation. Read more
Source§

impl<K: NumKernel> Sub<RealValidated<K>> for ComplexValidated<K>

Source§

type Output = ComplexValidated<K>

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: RealValidated<K>) -> Self::Output

Performs the - operation. Read more
Source§

impl<'a, K: NumKernel> Sub for &'a ComplexValidated<K>

Source§

type Output = ComplexValidated<K>

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: &'a ComplexValidated<K>) -> Self::Output

Performs the - operation. Read more
Source§

impl<K: NumKernel> Sub for ComplexValidated<K>

Source§

type Output = ComplexValidated<K>

The resulting type after applying the - operator.
Source§

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

Performs the - operation. Read more
Source§

impl<'a, K: NumKernel> SubAssign<&'a ComplexValidated<K>> for ComplexValidated<K>

Source§

fn sub_assign(&mut self, rhs: &'a Self)

Performs the -= operation. Read more
Source§

impl<'a, K: NumKernel> SubAssign<&'a RealValidated<K>> for ComplexValidated<K>

Source§

fn sub_assign(&mut self, rhs: &'a RealValidated<K>)

Performs the -= operation. Read more
Source§

impl<K: NumKernel> SubAssign<RealValidated<K>> for ComplexValidated<K>

Source§

fn sub_assign(&mut self, rhs: RealValidated<K>)

Performs the -= operation. Read more
Source§

impl<K: NumKernel> SubAssign for ComplexValidated<K>

Source§

fn sub_assign(&mut self, rhs: Self)

Performs the -= operation. Read more
Source§

impl<K: NumKernel> Sum for ComplexValidated<K>

Source§

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

Takes an iterator and generates Self from the elements by “summing up” the items.
Source§

impl<K: NumKernel> Tan for ComplexValidated<K>

Source§

type Error = FunctionErrors<TanComplexInputErrors<<<ComplexValidated<K> as TryNewValidated>::Policy as ValidationPolicy>::Value>, <<<ComplexValidated<K> as TryNewValidated>::Policy as ValidationPolicy>::Value as RawScalarTrait>::ValidationErrors>

The error type that is returned by the try_tan method.
Source§

fn try_tan(self) -> Result<Self, Self::Error>

Computes the tangent of self and returns a Result. Read more
Source§

fn tan(self) -> Self

Computes and returns the tangent of self. Read more
Source§

impl<K: NumKernel> TanH for ComplexValidated<K>

Source§

type Error = FunctionErrors<TanHComplexInputErrors<<<ComplexValidated<K> as TryNewValidated>::Policy as ValidationPolicy>::Value>, <<<ComplexValidated<K> as TryNewValidated>::Policy as ValidationPolicy>::Value as RawScalarTrait>::ValidationErrors>

The error type that is returned by the try_tanh method.
Source§

fn try_tanh(self) -> Result<Self, Self::Error>

Computes the hyperbolic tangent of self and returns a Result. Read more
Source§

fn tanh(self) -> Self

Computes and returns the hyperbolic tangent of self. Read more
Source§

impl<K: NumKernel> TryNew for ComplexValidated<K>

Source§

type Error = <<K as NumKernel>::ComplexPolicy as ValidationPolicy>::Error

The error type that can be returned by the try_new method.
Source§

fn try_new(value: Self::InnerType) -> Result<Self, Self::Error>

Attempts to create a new instance of Self from value. Read more
Source§

impl<K: NumKernel> TryNewValidated for ComplexValidated<K>

Source§

type Policy = <K as NumKernel>::ComplexPolicy

An implementor of ValidationPolicy. Read more
Source§

fn try_new_validated(value: Self::InnerType) -> Result<Self, Self::Error>

Attempts to create a new instance of Self from value. This method should first validate value using Self::Policy::validate_ref(&value) (or Self::Policy::validate(value) if consuming the value is intended by the policy). If validation is successful, it proceeds to construct the Self instance, typically by calling Self::try_new(value). If validation fails, the error from the policy is converted into Self::Error and returned. If construction after successful validation fails, the error from Self::try_new is returned.
Source§

impl<K: NumKernel> Zero for ComplexValidated<K>

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<K: NumKernel> Arithmetic for ComplexValidated<K>

Source§

impl<K: NumKernel> HyperbolicFunctions for ComplexValidated<K>

Source§

impl<K: NumKernel> LogarithmFunctions for ComplexValidated<K>

Source§

impl<K: NumKernel> TrigonometricFunctions for ComplexValidated<K>

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> Az for T

Source§

fn az<Dst>(self) -> Dst
where T: Cast<Dst>,

Casts the value.
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<Src, Dst> CastFrom<Src> for Dst
where Src: Cast<Dst>,

Source§

fn cast_from(src: Src) -> Dst

Casts the value.
Source§

impl<T> CheckedAs for T

Source§

fn checked_as<Dst>(self) -> Option<Dst>
where T: CheckedCast<Dst>,

Casts the value.
Source§

impl<Src, Dst> CheckedCastFrom<Src> for Dst
where Src: CheckedCast<Dst>,

Source§

fn checked_cast_from(src: Src) -> Option<Dst>

Casts the value.
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> ConditionallyCreate for T
where T: TryNew + New, <T as TryNew>::Error: Debug,

Source§

fn create_conditionally(value: Self::InnerType) -> Self

Conditionally creates an instance of Self. 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<T> OverflowingAs for T

Source§

fn overflowing_as<Dst>(self) -> (Dst, bool)
where T: OverflowingCast<Dst>,

Casts the value.
Source§

impl<Src, Dst> OverflowingCastFrom<Src> for Dst
where Src: OverflowingCast<Dst>,

Source§

fn overflowing_cast_from(src: Src) -> (Dst, bool)

Casts the value.
Source§

impl<T> SaturatingAs for T

Source§

fn saturating_as<Dst>(self) -> Dst
where T: SaturatingCast<Dst>,

Casts the value.
Source§

impl<Src, Dst> SaturatingCastFrom<Src> for Dst
where Src: SaturatingCast<Dst>,

Source§

fn saturating_cast_from(src: Src) -> Dst

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

Source§

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

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> UnwrappedAs for T

Source§

fn unwrapped_as<Dst>(self) -> Dst
where T: UnwrappedCast<Dst>,

Casts the value.
Source§

impl<Src, Dst> UnwrappedCastFrom<Src> for Dst
where Src: UnwrappedCast<Dst>,

Source§

fn unwrapped_cast_from(src: Src) -> Dst

Casts the value.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> WrappingAs for T

Source§

fn wrapping_as<Dst>(self) -> Dst
where T: WrappingCast<Dst>,

Casts the value.
Source§

impl<Src, Dst> WrappingCastFrom<Src> for Dst
where Src: WrappingCast<Dst>,

Source§

fn wrapping_cast_from(src: Src) -> Dst

Casts the value.
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,