# Struct num_complex::Complex

``````#[repr(C)]pub struct Complex<T> {
pub re: T,
pub im: T,
}``````
Expand description

A complex number in Cartesian form.

### Representation and Foreign Function Interface Compatibility

`Complex<T>` is memory layout compatible with an array `[T; 2]`.

Note that `Complex<F>` where F is a floating point type is only memory layout compatible with C’s complex types, not necessarily calling convention compatible. This means that for FFI you can only pass `Complex<F>` behind a pointer, not as a value.

### Examples

Example of extern function declaration.

``````use num_complex::Complex;
use std::os::raw::c_int;

extern "C" {
fn zaxpy_(n: *const c_int, alpha: *const Complex<f64>,
x: *const Complex<f64>, incx: *const c_int,
y: *mut Complex<f64>, incy: *const c_int);
}``````

## Fields§

§`re: T`

Real portion of the complex number

§`im: T`

Imaginary portion of the complex number

## Implementations§

Create a new Complex

Returns imaginary unit

Returns the square of the norm (since `T` doesn’t necessarily have a sqrt function), i.e. `re^2 + im^2`.

Multiplies `self` by the scalar `t`.

Divides `self` by the scalar `t`.

Raises `self` to an unsigned integer power.

Returns the complex conjugate. i.e. `re - i im`

Returns `1/self`

Raises `self` to a signed integer power.

Returns the L1 norm `|re| + |im|` – the Manhattan distance from the origin.

Create a new Complex with a given phase: `exp(i * phase)`. See cis (mathematics).

Calculate |self|

Calculate the principal Arg of self.

Convert to polar form (r, theta), such that `self = r * exp(i * theta)`

Convert a polar representation into a complex number.

Computes `e^(self)`, where `e` is the base of the natural logarithm.

Computes the principal value of natural logarithm of `self`.

This function has one branch cut:

• `(-∞, 0]`, continuous from above.

The branch satisfies `-π ≤ arg(ln(z)) ≤ π`.

Computes the principal value of the square root of `self`.

This function has one branch cut:

• `(-∞, 0)`, continuous from above.

The branch satisfies `-π/2 ≤ arg(sqrt(z)) ≤ π/2`.

Computes the principal value of the cube root of `self`.

This function has one branch cut:

• `(-∞, 0)`, continuous from above.

The branch satisfies `-π/3 ≤ arg(cbrt(z)) ≤ π/3`.

Note that this does not match the usual result for the cube root of negative real numbers. For example, the real cube root of `-8` is `-2`, but the principal complex cube root of `-8` is `1 + i√3`.

Raises `self` to a floating point power.

Returns the logarithm of `self` with respect to an arbitrary base.

Raises `self` to a complex power.

Raises a floating point number to the complex power `self`.

Computes the sine of `self`.

Computes the cosine of `self`.

Computes the tangent of `self`.

Computes the principal value of the inverse sine of `self`.

This function has two branch cuts:

• `(-∞, -1)`, continuous from above.
• `(1, ∞)`, continuous from below.

The branch satisfies `-π/2 ≤ Re(asin(z)) ≤ π/2`.

Computes the principal value of the inverse cosine of `self`.

This function has two branch cuts:

• `(-∞, -1)`, continuous from above.
• `(1, ∞)`, continuous from below.

The branch satisfies `0 ≤ Re(acos(z)) ≤ π`.

Computes the principal value of the inverse tangent of `self`.

This function has two branch cuts:

• `(-∞i, -i]`, continuous from the left.
• `[i, ∞i)`, continuous from the right.

The branch satisfies `-π/2 ≤ Re(atan(z)) ≤ π/2`.

Computes the hyperbolic sine of `self`.

Computes the hyperbolic cosine of `self`.

Computes the hyperbolic tangent of `self`.

Computes the principal value of inverse hyperbolic sine of `self`.

This function has two branch cuts:

• `(-∞i, -i)`, continuous from the left.
• `(i, ∞i)`, continuous from the right.

The branch satisfies `-π/2 ≤ Im(asinh(z)) ≤ π/2`.

Computes the principal value of inverse hyperbolic cosine of `self`.

This function has one branch cut:

• `(-∞, 1)`, continuous from above.

The branch satisfies `-π ≤ Im(acosh(z)) ≤ π` and `0 ≤ Re(acosh(z)) < ∞`.

Computes the principal value of inverse hyperbolic tangent of `self`.

This function has two branch cuts:

• `(-∞, -1]`, continuous from above.
• `[1, ∞)`, continuous from below.

The branch satisfies `-π/2 ≤ Im(atanh(z)) ≤ π/2`.

Returns `1/self` using floating-point operations.

This may be more accurate than the generic `self.inv()` in cases where `self.norm_sqr()` would overflow to ∞ or underflow to 0.

##### Examples
``````use num_complex::Complex64;
let c = Complex64::new(1e300, 1e300);

// The generic `inv()` will overflow.
assert!(!c.inv().is_normal());

// But we can do better for `Float` types.
let inv = c.finv();
assert!(inv.is_normal());
println!("{:e}", inv);

let expected = Complex64::new(5e-301, -5e-301);
assert!((inv - expected).norm() < 1e-315);``````

Returns `self/other` using floating-point operations.

This may be more accurate than the generic `Div` implementation in cases where `other.norm_sqr()` would overflow to ∞ or underflow to 0.

##### Examples
``````use num_complex::Complex64;
let a = Complex64::new(2.0, 3.0);
let b = Complex64::new(1e300, 1e300);

// Generic division will overflow.
assert!(!(a / b).is_normal());

// But we can do better for `Float` types.
let quotient = a.fdiv(b);
assert!(quotient.is_normal());
println!("{:e}", quotient);

let expected = Complex64::new(2.5e-300, 5e-301);
assert!((quotient - expected).norm() < 1e-315);``````

Computes `2^(self)`.

Computes the principal value of log base 2 of `self`.

Computes the principal value of log base 10 of `self`.

Checks if the given complex number is NaN

Checks if the given complex number is infinite

Checks if the given complex number is finite

Checks if the given complex number is normal

## Trait Implementations§

The resulting type after applying the `+` operator.
Performs the `+` operation. Read more
The resulting type after applying the `+` operator.
Performs the `+` operation. Read more
The resulting type after applying the `+` operator.
Performs the `+` operation. Read more
The resulting type after applying the `+` operator.
Performs the `+` operation. Read more
The resulting type after applying the `+` operator.
Performs the `+` operation. Read more
The resulting type after applying the `+` operator.
Performs the `+` operation. Read more
The resulting type after applying the `+` operator.
Performs the `+` operation. Read more
The resulting type after applying the `+` operator.
Performs the `+` operation. Read more
The resulting type after applying the `+` operator.
Performs the `+` operation. Read more
The resulting type after applying the `+` operator.
Performs the `+` operation. Read more
The resulting type after applying the `+` operator.
Performs the `+` operation. Read more
The resulting type after applying the `+` operator.
Performs the `+` operation. Read more
The resulting type after applying the `+` operator.
Performs the `+` operation. Read more
The resulting type after applying the `+` operator.
Performs the `+` operation. Read more
The resulting type after applying the `+` operator.
Performs the `+` operation. Read more
The resulting type after applying the `+` operator.
Performs the `+` operation. Read more
The resulting type after applying the `+` operator.
Performs the `+` operation. Read more
The resulting type after applying the `+` operator.
Performs the `+` operation. Read more
The resulting type after applying the `+` operator.
Performs the `+` operation. Read more
The resulting type after applying the `+` operator.
Performs the `+` operation. Read more
The resulting type after applying the `+` operator.
Performs the `+` operation. Read more
The resulting type after applying the `+` operator.
Performs the `+` operation. Read more
The resulting type after applying the `+` operator.
Performs the `+` operation. Read more
The resulting type after applying the `+` operator.
Performs the `+` operation. Read more
The resulting type after applying the `+` operator.
Performs the `+` operation. Read more
The resulting type after applying the `+` operator.
Performs the `+` operation. Read more
The resulting type after applying the `+` operator.
Performs the `+` operation. Read more
The resulting type after applying the `+` operator.
Performs the `+` operation. Read more
The resulting type after applying the `+` operator.
Performs the `+` operation. Read more
The resulting type after applying the `+` operator.
Performs the `+` operation. Read more
The resulting type after applying the `+` operator.
Performs the `+` operation. Read more
The resulting type after applying the `+` operator.
Performs the `+` operation. Read more
The resulting type after applying the `+` operator.
Performs the `+` operation. Read more
The resulting type after applying the `+` operator.
Performs the `+` operation. Read more
The resulting type after applying the `+` operator.
Performs the `+` operation. Read more
The resulting type after applying the `+` operator.
Performs the `+` operation. Read more
The resulting type after applying the `+` operator.
Performs the `+` operation. Read more
The resulting type after applying the `+` operator.
Performs the `+` operation. Read more
The resulting type after applying the `+` operator.
Performs the `+` operation. Read more
The resulting type after applying the `+` operator.
Performs the `+` operation. Read more
The resulting type after applying the `+` operator.
Performs the `+` operation. Read more
The resulting type after applying the `+` operator.
Performs the `+` operation. Read more
The resulting type after applying the `+` operator.
Performs the `+` operation. Read more
The resulting type after applying the `+` operator.
Performs the `+` operation. Read more
The resulting type after applying the `+` operator.
Performs the `+` operation. Read more
The resulting type after applying the `+` operator.
Performs the `+` operation. Read more
The resulting type after applying the `+` operator.
Performs the `+` operation. Read more
The resulting type after applying the `+` operator.
Performs the `+` operation. Read more
The resulting type after applying the `+` operator.
Performs the `+` operation. Read more
The resulting type after applying the `+` operator.
Performs the `+` operation. Read more
The resulting type after applying the `+` operator.
Performs the `+` operation. Read more
The resulting type after applying the `+` operator.
Performs the `+` operation. Read more
The resulting type after applying the `+` operator.
Performs the `+` operation. Read more
The resulting type after applying the `+` operator.
Performs the `+` operation. Read more
The resulting type after applying the `+` operator.
Performs the `+` operation. Read more
The resulting type after applying the `+` operator.
Performs the `+` operation. Read more
The resulting type after applying the `+` operator.
Performs the `+` operation. Read more
The resulting type after applying the `+` operator.
Performs the `+` operation. Read more
The resulting type after applying the `+` operator.
Performs the `+` operation. Read more
The resulting type after applying the `+` operator.
Performs the `+` operation. Read more
The resulting type after applying the `+` operator.
Performs the `+` operation. Read more
The resulting type after applying the `+` operator.
Performs the `+` operation. Read more
The resulting type after applying the `+` operator.
Performs the `+` operation. Read more
The resulting type after applying the `+` operator.
Performs the `+` operation. Read more
Performs the `+=` operation. Read more
Performs the `+=` operation. Read more
Performs the `+=` operation. Read more
Performs the `+=` operation. Read more
The archived representation of this type. Read more
The resolver for this type. It must contain all the additional information from serializing needed to make the archived type from the normal type.
Creates the archived version of this value at the given position and writes it to the given output. Read more
Convert a value to another, using the `as` operator.
Formats the value using the given formatter.
The error that may result from checking the type.
Checks whether the given pointer points to a valid value within the given context. Read more
Returns a copy of the value. Read more
Performs copy-assignment from `source`. Read more
The type used to represent the real coefficients of this complex number.
Returns the real part of the number.
Returns the imaginary part of the number.
Returns the absolute value of the number. See also Complex::norm
Take the reciprocal (inverse) of a number, `1/x`. See also Complex::finv.
Returns the L1 norm `|re| + |im|` – the Manhattan distance from the origin.
Returns `true` if this value is `NaN` and false otherwise.
Returns `true` if this value is positive infinity or negative infinity and false otherwise.
Returns `true` if this number is neither infinite nor `NaN`.
Returns `true` if the number is neither zero, infinite, subnormal, or `NaN`.
Computes the argument of the number.
Raises `self` to a complex power.
Returns `2^(self)`.
Returns the logarithm of the number with respect to an arbitrary base.
Returns the base 2 logarithm of the number.
Returns the base 10 logarithm of the number.
Raises `self` to a real power.
Take the square root of a number.
Take the cubic root of a number.
Returns `e^(self)`, (the exponential function).
Returns `base^(self)`.
Returns the natural logarithm of the number.
Computes the sine of a number (in radians).
Computes the cosine of a number (in radians).
Computes the tangent of a number (in radians).
Computes the arcsine of a number. Return value is in radians in the range [-pi/2, pi/2] or NaN if the number is outside the range [-1, 1].
Computes the arccosine of a number. Return value is in radians in the range [0, pi] or NaN if the number is outside the range [-1, 1].
Computes the arctangent of a number. Return value is in radians in the range [-pi/2, pi/2];
Hyperbolic sine function.
Hyperbolic cosine function.
Hyperbolic tangent function.
Inverse hyperbolic sine function.
Inverse hyperbolic cosine function.
Inverse hyperbolic tangent function.
Raises `self` to a signed integer power.
Computes the complex conjugate of the number. Read more
Formats the value using the given formatter. Read more
Returns the “default value” for a type. Read more
Deserialize this value from the given Serde deserializer. Read more
Deserializes using the given deserializer
Formats the value using the given formatter. Read more
Generate a random value of `T`, using `rng` as the source of randomness.
Create an iterator that generates random values of `T`, using `rng` as the source of randomness. Read more
Create a distribution of values of ‘S’ by mapping the output of `Self` through the closure `F` Read more
Generate a random value of `T`, using `rng` as the source of randomness.
Create an iterator that generates random values of `T`, using `rng` as the source of randomness. Read more
Create a distribution of values of ‘S’ by mapping the output of `Self` through the closure `F` Read more
The resulting type after applying the `/` operator.
Performs the `/` operation. Read more
The resulting type after applying the `/` operator.
Performs the `/` operation. Read more
The resulting type after applying the `/` operator.
Performs the `/` operation. Read more
The resulting type after applying the `/` operator.
Performs the `/` operation. Read more
The resulting type after applying the `/` operator.
Performs the `/` operation. Read more
The resulting type after applying the `/` operator.
Performs the `/` operation. Read more
The resulting type after applying the `/` operator.
Performs the `/` operation. Read more
The resulting type after applying the `/` operator.
Performs the `/` operation. Read more
The resulting type after applying the `/` operator.
Performs the `/` operation. Read more
The resulting type after applying the `/` operator.
Performs the `/` operation. Read more
The resulting type after applying the `/` operator.
Performs the `/` operation. Read more
The resulting type after applying the `/` operator.
Performs the `/` operation. Read more
The resulting type after applying the `/` operator.
Performs the `/` operation. Read more
The resulting type after applying the `/` operator.
Performs the `/` operation. Read more
The resulting type after applying the `/` operator.
Performs the `/` operation. Read more
The resulting type after applying the `/` operator.
Performs the `/` operation. Read more
The resulting type after applying the `/` operator.
Performs the `/` operation. Read more
The resulting type after applying the `/` operator.
Performs the `/` operation. Read more
The resulting type after applying the `/` operator.
Performs the `/` operation. Read more
The resulting type after applying the `/` operator.
Performs the `/` operation. Read more
The resulting type after applying the `/` operator.
Performs the `/` operation. Read more
The resulting type after applying the `/` operator.
Performs the `/` operation. Read more
The resulting type after applying the `/` operator.
Performs the `/` operation. Read more
The resulting type after applying the `/` operator.
Performs the `/` operation. Read more
The resulting type after applying the `/` operator.
Performs the `/` operation. Read more
The resulting type after applying the `/` operator.
Performs the `/` operation. Read more
The resulting type after applying the `/` operator.
Performs the `/` operation. Read more
The resulting type after applying the `/` operator.
Performs the `/` operation. Read more
The resulting type after applying the `/` operator.
Performs the `/` operation. Read more
The resulting type after applying the `/` operator.
Performs the `/` operation. Read more
The resulting type after applying the `/` operator.
Performs the `/` operation. Read more
The resulting type after applying the `/` operator.
Performs the `/` operation. Read more
The resulting type after applying the `/` operator.
Performs the `/` operation. Read more
The resulting type after applying the `/` operator.
Performs the `/` operation. Read more
The resulting type after applying the `/` operator.
Performs the `/` operation. Read more
The resulting type after applying the `/` operator.
Performs the `/` operation. Read more
The resulting type after applying the `/` operator.
Performs the `/` operation. Read more
The resulting type after applying the `/` operator.
Performs the `/` operation. Read more
The resulting type after applying the `/` operator.
Performs the `/` operation. Read more
The resulting type after applying the `/` operator.
Performs the `/` operation. Read more
The resulting type after applying the `/` operator.
Performs the `/` operation. Read more
The resulting type after applying the `/` operator.
Performs the `/` operation. Read more
The resulting type after applying the `/` operator.
Performs the `/` operation. Read more
The resulting type after applying the `/` operator.
Performs the `/` operation. Read more
The resulting type after applying the `/` operator.
Performs the `/` operation. Read more
The resulting type after applying the `/` operator.
Performs the `/` operation. Read more
The resulting type after applying the `/` operator.
Performs the `/` operation. Read more
The resulting type after applying the `/` operator.
Performs the `/` operation. Read more
The resulting type after applying the `/` operator.
Performs the `/` operation. Read more
The resulting type after applying the `/` operator.
Performs the `/` operation. Read more
The resulting type after applying the `/` operator.
Performs the `/` operation. Read more
The resulting type after applying the `/` operator.
Performs the `/` operation. Read more
The resulting type after applying the `/` operator.
Performs the `/` operation. Read more
The resulting type after applying the `/` operator.
Performs the `/` operation. Read more
The resulting type after applying the `/` operator.
Performs the `/` operation. Read more
The resulting type after applying the `/` operator.
Performs the `/` operation. Read more
The resulting type after applying the `/` operator.
Performs the `/` operation. Read more
The resulting type after applying the `/` operator.
Performs the `/` operation. Read more
The resulting type after applying the `/` operator.
Performs the `/` operation. Read more
The resulting type after applying the `/` operator.
Performs the `/` operation. Read more
The resulting type after applying the `/` operator.
Performs the `/` operation. Read more
The resulting type after applying the `/` operator.
Performs the `/` operation. Read more
The resulting type after applying the `/` operator.
Performs the `/` operation. Read more
The resulting type after applying the `/` operator.
Performs the `/` operation. Read more
Performs the `/=` operation. Read more
Performs the `/=` operation. Read more
Performs the `/=` operation. Read more
Performs the `/=` operation. Read more
Converts to this type from the input type.
Converts to this type from the input type.
Converts a `usize` to return an optional value of this type. If the value cannot be represented by this type, then `None` is returned.
Converts an `isize` to return an optional value of this type. If the value cannot be represented by this type, then `None` is returned.
Converts an `u8` to return an optional value of this type. If the value cannot be represented by this type, then `None` is returned.
Converts an `u16` to return an optional value of this type. If the value cannot be represented by this type, then `None` is returned.
Converts an `u32` to return an optional value of this type. If the value cannot be represented by this type, then `None` is returned.
Converts an `u64` to return an optional value of this type. If the value cannot be represented by this type, then `None` is returned.
Converts an `i8` to return an optional value of this type. If the value cannot be represented by this type, then `None` is returned.
Converts an `i16` to return an optional value of this type. If the value cannot be represented by this type, then `None` is returned.
Converts an `i32` to return an optional value of this type. If the value cannot be represented by this type, then `None` is returned.
Converts an `i64` to return an optional value of this type. If the value cannot be represented by this type, then `None` is returned.
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
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
Converts a `f32` to return an optional value of this type. If the value cannot be represented by this type, then `None` is returned.
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

Parses `a +/- bi`; `ai +/- b`; `a`; or `bi` where `a` and `b` are of type `T`

The associated error which can be returned from parsing.
Feeds this value into the given `Hasher`. Read more
Feeds a slice of this type into the given `Hasher`. Read more
The result after applying the operator.
Returns the multiplicative inverse of `self`. Read more
The result after applying the operator.
Returns the multiplicative inverse of `self`. Read more
Formats the value using the given formatter.
Formats the value using the given formatter.
The resulting type after applying the `*` operator.
Performs the `*` operation. Read more
The resulting type after applying the `*` operator.
Performs the `*` operation. Read more
The resulting type after applying the `*` operator.
Performs the `*` operation. Read more
The resulting type after applying the `*` operator.
Performs the `*` operation. Read more
The resulting type after applying the `*` operator.
Performs the `*` operation. Read more
The resulting type after applying the `*` operator.
Performs the `*` operation. Read more
The resulting type after applying the `*` operator.
Performs the `*` operation. Read more
The resulting type after applying the `*` operator.
Performs the `*` operation. Read more
The resulting type after applying the `*` operator.
Performs the `*` operation. Read more
The resulting type after applying the `*` operator.
Performs the `*` operation. Read more
The resulting type after applying the `*` operator.
Performs the `*` operation. Read more
The resulting type after applying the `*` operator.
Performs the `*` operation. Read more
The resulting type after applying the `*` operator.
Performs the `*` operation. Read more
The resulting type after applying the `*` operator.
Performs the `*` operation. Read more
The resulting type after applying the `*` operator.
Performs the `*` operation. Read more
The resulting type after applying the `*` operator.
Performs the `*` operation. Read more
The resulting type after applying the `*` operator.
Performs the `*` operation. Read more
The resulting type after applying the `*` operator.
Performs the `*` operation. Read more
The resulting type after applying the `*` operator.
Performs the `*` operation. Read more
The resulting type after applying the `*` operator.
Performs the `*` operation. Read more
The resulting type after applying the `*` operator.
Performs the `*` operation. Read more
The resulting type after applying the `*` operator.
Performs the `*` operation. Read more
The resulting type after applying the `*` operator.
Performs the `*` operation. Read more
The resulting type after applying the `*` operator.
Performs the `*` operation. Read more
The resulting type after applying the `*` operator.
Performs the `*` operation. Read more
The resulting type after applying the `*` operator.
Performs the `*` operation. Read more
The resulting type after applying the `*` operator.
Performs the `*` operation. Read more
The resulting type after applying the `*` operator.
Performs the `*` operation. Read more
The resulting type after applying the `*` operator.
Performs the `*` operation. Read more
The resulting type after applying the `*` operator.
Performs the `*` operation. Read more
The resulting type after applying the `*` operator.
Performs the `*` operation. Read more
The resulting type after applying the `*` operator.
Performs the `*` operation. Read more
The resulting type after applying the `*` operator.
Performs the `*` operation. Read more
The resulting type after applying the `*` operator.
Performs the `*` operation. Read more
The resulting type after applying the `*` operator.
Performs the `*` operation. Read more
The resulting type after applying the `*` operator.
Performs the `*` operation. Read more
The resulting type after applying the `*` operator.
Performs the `*` operation. Read more
The resulting type after applying the `*` operator.
Performs the `*` operation. Read more
The resulting type after applying the `*` operator.
Performs the `*` operation. Read more
The resulting type after applying the `*` operator.
Performs the `*` operation. Read more
The resulting type after applying the `*` operator.
Performs the `*` operation. Read more
The resulting type after applying the `*` operator.
Performs the `*` operation. Read more
The resulting type after applying the `*` operator.
Performs the `*` operation. Read more
The resulting type after applying the `*` operator.
Performs the `*` operation. Read more
The resulting type after applying the `*` operator.
Performs the `*` operation. Read more
The resulting type after applying the `*` operator.
Performs the `*` operation. Read more
The resulting type after applying the `*` operator.
Performs the `*` operation. Read more
The resulting type after applying the `*` operator.
Performs the `*` operation. Read more
The resulting type after applying the `*` operator.
Performs the `*` operation. Read more
The resulting type after applying the `*` operator.
Performs the `*` operation. Read more
The resulting type after applying the `*` operator.
Performs the `*` operation. Read more
The resulting type after applying the `*` operator.
Performs the `*` operation. Read more
The resulting type after applying the `*` operator.
Performs the `*` operation. Read more
The resulting type after applying the `*` operator.
Performs the `*` operation. Read more
The resulting type after applying the `*` operator.
Performs the `*` operation. Read more
The resulting type after applying the `*` operator.
Performs the `*` operation. Read more
The resulting type after applying the `*` operator.
Performs the `*` operation. Read more
The resulting type after applying the `*` operator.
Performs the `*` operation. Read more
The resulting type after applying the `*` operator.
Performs the `*` operation. Read more
The resulting type after applying the `*` operator.
Performs the `*` operation. Read more
The resulting type after applying the `*` operator.
Performs the `*` operation. Read more
The resulting type after applying the `*` operator.
Performs the `*` operation. Read more
The resulting type after applying the `*` operator.
Performs the `*` operation. Read more
The resulting type after applying the `*` operator.
Performs the `*` operation. Read more
The resulting type after applying the fused multiply-add.
Performs the fused multiply-add operation.
The resulting type after applying the fused multiply-add.
Performs the fused multiply-add operation.
Performs the fused multiply-add operation.
Performs the fused multiply-add operation.
Performs the `*=` operation. Read more
Performs the `*=` operation. Read more
Performs the `*=` operation. Read more
Performs the `*=` operation. Read more
The resulting type after applying the `-` operator.
Performs the unary `-` operation. Read more
The resulting type after applying the `-` operator.
Performs the unary `-` operation. Read more

Parses `a +/- bi`; `ai +/- b`; `a`; or `bi` where `a` and `b` are of type `T`

`radix` must be <= 18; larger radix would include i and j as digits, which cannot be supported.

The conversion returns an error if 18 <= radix <= 36; it panics if radix > 36.

The elements of `T` are parsed using `Num::from_str_radix` too, and errors (or panics) from that are reflected here as well.

Creates a number from another value that can be converted into a primitive via the `ToPrimitive` trait. If the source value cannot be represented by the target type, then `None` is returned. Read more
Formats the value using the given formatter.
Returns the multiplicative identity element of `Self`, `1`. Read more
Returns `true` if `self` is equal to the multiplicative identity. Read more
Sets `self` to the multiplicative identity element of `Self`, `1`.
This method tests for `self` and `other` values to be equal, and is used by `==`.
This method tests for `!=`. The default implementation is almost always sufficient, and should not be overridden without very good reason.
The result after applying the operator.
Returns `self` to the power `rhs`. Read more
The result after applying the operator.
Returns `self` to the power `rhs`. Read more
The result after applying the operator.
Returns `self` to the power `rhs`. Read more
The result after applying the operator.
Returns `self` to the power `rhs`. Read more
The result after applying the operator.
Returns `self` to the power `rhs`. Read more
The result after applying the operator.
Returns `self` to the power `rhs`. Read more
The result after applying the operator.
Returns `self` to the power `rhs`. Read more
The result after applying the operator.
Returns `self` to the power `rhs`. Read more
The result after applying the operator.
Returns `self` to the power `rhs`. Read more
The result after applying the operator.
Returns `self` to the power `rhs`. Read more
The result after applying the operator.
Returns `self` to the power `rhs`. Read more
The result after applying the operator.
Returns `self` to the power `rhs`. Read more
The result after applying the operator.
Returns `self` to the power `rhs`. Read more
The result after applying the operator.
Returns `self` to the power `rhs`. Read more
The result after applying the operator.
Returns `self` to the power `rhs`. Read more
The result after applying the operator.
Returns `self` to the power `rhs`. Read more
The result after applying the operator.
Returns `self` to the power `rhs`. Read more
The result after applying the operator.
Returns `self` to the power `rhs`. Read more
The result after applying the operator.
Returns `self` to the power `rhs`. Read more
The result after applying the operator.
Returns `self` to the power `rhs`. Read more
The result after applying the operator.
Returns `self` to the power `rhs`. Read more
The result after applying the operator.
Returns `self` to the power `rhs`. Read more
The result after applying the operator.
Returns `self` to the power `rhs`. Read more
The result after applying the operator.
Returns `self` to the power `rhs`. Read more
The result after applying the operator.
Returns `self` to the power `rhs`. Read more
The result after applying the operator.
Returns `self` to the power `rhs`. Read more
The result after applying the operator.
Returns `self` to the power `rhs`. Read more
The result after applying the operator.
Returns `self` to the power `rhs`. Read more
The result after applying the operator.
Returns `self` to the power `rhs`. Read more
The result after applying the operator.
Returns `self` to the power `rhs`. Read more
The result after applying the operator.
Returns `self` to the power `rhs`. Read more
The result after applying the operator.
Returns `self` to the power `rhs`. Read more
The result after applying the operator.
Returns `self` to the power `rhs`. Read more
The result after applying the operator.
Returns `self` to the power `rhs`. Read more
The result after applying the operator.
Returns `self` to the power `rhs`. Read more
The result after applying the operator.
Returns `self` to the power `rhs`. Read more
Method which takes an iterator and generates `Self` from the elements by multiplying the items.
Method which takes an iterator and generates `Self` from the elements by multiplying the items.
The resulting type after applying the `%` operator.
Performs the `%` operation. Read more
The resulting type after applying the `%` operator.
Performs the `%` operation. Read more
The resulting type after applying the `%` operator.
Performs the `%` operation. Read more
The resulting type after applying the `%` operator.
Performs the `%` operation. Read more
The resulting type after applying the `%` operator.
Performs the `%` operation. Read more
The resulting type after applying the `%` operator.
Performs the `%` operation. Read more
The resulting type after applying the `%` operator.
Performs the `%` operation. Read more
The resulting type after applying the `%` operator.
Performs the `%` operation. Read more
The resulting type after applying the `%` operator.
Performs the `%` operation. Read more
The resulting type after applying the `%` operator.
Performs the `%` operation. Read more
The resulting type after applying the `%` operator.
Performs the `%` operation. Read more
The resulting type after applying the `%` operator.
Performs the `%` operation. Read more
The resulting type after applying the `%` operator.
Performs the `%` operation. Read more
The resulting type after applying the `%` operator.
Performs the `%` operation. Read more
The resulting type after applying the `%` operator.
Performs the `%` operation. Read more
The resulting type after applying the `%` operator.
Performs the `%` operation. Read more
The resulting type after applying the `%` operator.
Performs the `%` operation. Read more
The resulting type after applying the `%` operator.
Performs the `%` operation. Read more
The resulting type after applying the `%` operator.
Performs the `%` operation. Read more
The resulting type after applying the `%` operator.
Performs the `%` operation. Read more
The resulting type after applying the `%` operator.
Performs the `%` operation. Read more
The resulting type after applying the `%` operator.
Performs the `%` operation. Read more
The resulting type after applying the `%` operator.
Performs the `%` operation. Read more
The resulting type after applying the `%` operator.
Performs the `%` operation. Read more
The resulting type after applying the `%` operator.
Performs the `%` operation. Read more
The resulting type after applying the `%` operator.
Performs the `%` operation. Read more
The resulting type after applying the `%` operator.
Performs the `%` operation. Read more
The resulting type after applying the `%` operator.
Performs the `%` operation. Read more
The resulting type after applying the `%` operator.
Performs the `%` operation. Read more
The resulting type after applying the `%` operator.
Performs the `%` operation. Read more
The resulting type after applying the `%` operator.
Performs the `%` operation. Read more
The resulting type after applying the `%` operator.
Performs the `%` operation. Read more
The resulting type after applying the `%` operator.
Performs the `%` operation. Read more
The resulting type after applying the `%` operator.
Performs the `%` operation. Read more
The resulting type after applying the `%` operator.
Performs the `%` operation. Read more
The resulting type after applying the `%` operator.
Performs the `%` operation. Read more
The resulting type after applying the `%` operator.
Performs the `%` operation. Read more
The resulting type after applying the `%` operator.
Performs the `%` operation. Read more
The resulting type after applying the `%` operator.
Performs the `%` operation. Read more
The resulting type after applying the `%` operator.
Performs the `%` operation. Read more
The resulting type after applying the `%` operator.
Performs the `%` operation. Read more
The resulting type after applying the `%` operator.
Performs the `%` operation. Read more
The resulting type after applying the `%` operator.
Performs the `%` operation. Read more
The resulting type after applying the `%` operator.
Performs the `%` operation. Read more
The resulting type after applying the `%` operator.
Performs the `%` operation. Read more
The resulting type after applying the `%` operator.
Performs the `%` operation. Read more
The resulting type after applying the `%` operator.
Performs the `%` operation. Read more
The resulting type after applying the `%` operator.
Performs the `%` operation. Read more
The resulting type after applying the `%` operator.
Performs the `%` operation. Read more
The resulting type after applying the `%` operator.
Performs the `%` operation. Read more
The resulting type after applying the `%` operator.
Performs the `%` operation. Read more
The resulting type after applying the `%` operator.
Performs the `%` operation. Read more
The resulting type after applying the `%` operator.
Performs the `%` operation. Read more
The resulting type after applying the `%` operator.
Performs the `%` operation. Read more
The resulting type after applying the `%` operator.
Performs the `%` operation. Read more
The resulting type after applying the `%` operator.
Performs the `%` operation. Read more
The resulting type after applying the `%` operator.
Performs the `%` operation. Read more
The resulting type after applying the `%` operator.
Performs the `%` operation. Read more
The resulting type after applying the `%` operator.
Performs the `%` operation. Read more
The resulting type after applying the `%` operator.
Performs the `%` operation. Read more
The resulting type after applying the `%` operator.
Performs the `%` operation. Read more
The resulting type after applying the `%` operator.
Performs the `%` operation. Read more
The resulting type after applying the `%` operator.
Performs the `%` operation. Read more
The resulting type after applying the `%` operator.
Performs the `%` operation. Read more
Performs the `%=` operation. Read more
Performs the `%=` operation. Read more
Performs the `%=` operation. Read more
Performs the `%=` operation. Read more
Writes the dependencies for the object and returns a resolver that can create the archived type.
Serialize this value into the given Serde serializer. Read more
The resulting type after applying the `-` operator.
Performs the `-` operation. Read more
The resulting type after applying the `-` operator.
Performs the `-` operation. Read more
The resulting type after applying the `-` operator.
Performs the `-` operation. Read more
The resulting type after applying the `-` operator.
Performs the `-` operation. Read more
The resulting type after applying the `-` operator.
Performs the `-` operation. Read more
The resulting type after applying the `-` operator.
Performs the `-` operation. Read more
The resulting type after applying the `-` operator.
Performs the `-` operation. Read more
The resulting type after applying the `-` operator.
Performs the `-` operation. Read more
The resulting type after applying the `-` operator.
Performs the `-` operation. Read more
The resulting type after applying the `-` operator.
Performs the `-` operation. Read more
The resulting type after applying the `-` operator.
Performs the `-` operation. Read more
The resulting type after applying the `-` operator.
Performs the `-` operation. Read more
The resulting type after applying the `-` operator.
Performs the `-` operation. Read more
The resulting type after applying the `-` operator.
Performs the `-` operation. Read more
The resulting type after applying the `-` operator.
Performs the `-` operation. Read more
The resulting type after applying the `-` operator.