pub enum Complex {
    C32(Complex<f32>),
    C64(Complex<f64>),
}
Expand description

A complex number.

Variants§

Implementations§

Borrow the imaginary part of this Complex number

Borrow the real part of this Complex number

Trait Implementations§

The resulting type after applying the + operator.
Performs the + operation. Read more
Performs the += operation. Read more
Cast an instance of T into an instance of Self.
Cast an instance of T into an instance of Self.
Cast an instance of T into an instance of Self.
Cast an instance of T into an instance of Self.
Cast an instance of T into an instance of Self.
Cast an instance of T into an instance of Self.
Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Returns the “default value” for a type. Read more
Formats the value using the given formatter. Read more
The resulting type after applying the / operator.
Performs the / operation. Read more
Performs the /= operation. Read more
Return true if this Number is infinite (e.g. f32::INFINITY).
Return true if this is not a valid number (NaN).
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
The associated error which can be returned from parsing.
Parses a string s to return a value of this type. Read more
Determines the total size of the object. Read more
Determines how may bytes this object occupies inside the stack. Read more
Determines how many bytes this object occupies inside the heap. Read more
Feeds this value into the given Hasher. Read more
Feeds a slice of this type into the given Hasher. Read more
The resulting type after applying the * operator.
Performs the * operation. Read more
Performs the *= operation. Read more
Get an impl of NumberClass describing this number.
Cast this number into the specified NumberClass.
Calculate the absolute value of this number.
Raise e to the power of this number.
Compute the natural logarithm of this number.
Compute the logarithm of this number with respect to the given base.
Raise this number to the given exponent. Read more
Return this number rounded to the nearest integer.
Return true if self and other are nonzero.
Return true if this number is zero.
Return true if self or other is nonzero.
Return true if exactly one of self and other is zero.
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.
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
Performs the -= operation. Read more
Method which takes an iterator and generates Self from the elements by “summing up” the items.
Arcsine
Sine
Hyperbolic sine
Hyperbolic arcsine
Hyperbolic arccosine
Cosine
Hyperbolic cosine
Hyperbolic arccosine
Arctangent
Tangent
Hyperbolic tangent
Hyperbolic arctangent

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
Cast an instance of T into an instance of Self.
Cast an instance of Self into an instance of T.

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Returns true if self can be cast into the target type T.
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
Converts the given value to a String. Read more
Test if value can be cast into Self.
Returns Some(Self) if the source value can be cast into Self, otherwise None.
Returns Ok(Self) if the source value can be cast into Self, otherwise calls on_err.
Test if self can be cast into T.
Returns Some(T) if self can be cast into T, otherwise None.
Returns Ok(T) if self can be cast into T, otherwise calls on_err.
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.