Struct rug_maths::Complex[][src]

pub struct Complex {
    pub val: Complex,
}

Fields

val: Complex

Implementations

impl Complex[src]

pub fn with_val<P, T>(prec: P, val: T) -> Self where
    Complex: Assign<T>,
    P: Prec
[src]

impl Complex[src]

pub fn real(&self) -> Float[src]

Returns the real part

pub fn imag(&self) -> Float[src]

Returns the imaginary part

Trait Implementations

impl<'a> Add<&'a Complex> for Complex[src]

type Output = Complex

The resulting type after applying the + operator.

impl<'a> Add<&'a Complex> for &'a Complex[src]

type Output = Complex

The resulting type after applying the + operator.

impl<B> Add<B> for Complex where
    Complex: Add<B, Output = Complex>, 
[src]

type Output = Complex

The resulting type after applying the + operator.

impl<'a, B> Add<B> for &'a Complex where
    Complex: Add<B, Output = Complex>, 
[src]

type Output = Complex

The resulting type after applying the + operator.

impl Add<Complex> for Complex[src]

type Output = Complex

The resulting type after applying the + operator.

impl<'a> Add<Complex> for &'a Complex[src]

type Output = Complex

The resulting type after applying the + operator.

impl<'a> AddAssign<&'a Complex> for Complex[src]

impl<B> AddAssign<B> for Complex where
    Complex: AddAssign<B>, 
[src]

impl AddAssign<Complex> for Complex[src]

impl AddAssociative for Complex[src]

impl AddCommutative for Complex[src]

impl CheckedAdd for Complex[src]

impl CheckedDiv for Complex[src]

impl CheckedMul for Complex[src]

impl CheckedNeg for Complex[src]

impl CheckedSub for Complex[src]

impl Clone for Complex[src]

impl ComplexSubset for Complex[src]

type Real = Float

type Natural = Integer

type Integer = Integer

impl Debug for Complex[src]

impl Display for Complex[src]

impl Distributive<Complex> for Complex[src]

impl<'a> Div<&'a Complex> for Complex[src]

type Output = Complex

The resulting type after applying the / operator.

impl<'a> Div<&'a Complex> for &'a Complex[src]

type Output = Complex

The resulting type after applying the / operator.

impl<B> Div<B> for Complex where
    Complex: Div<B, Output = Complex>, 
[src]

type Output = Complex

The resulting type after applying the / operator.

impl<'a, B> Div<B> for &'a Complex where
    Complex: Div<B, Output = Complex>, 
[src]

type Output = Complex

The resulting type after applying the / operator.

impl Div<Complex> for Complex[src]

type Output = Complex

The resulting type after applying the / operator.

impl<'a> Div<Complex> for &'a Complex[src]

type Output = Complex

The resulting type after applying the / operator.

impl<'a> DivAssign<&'a Complex> for Complex[src]

impl<B> DivAssign<B> for Complex where
    Complex: DivAssign<B>, 
[src]

impl DivAssign<Complex> for Complex[src]

impl Divisibility for Complex[src]

impl Exponential for Complex[src]

impl<T> From<T> for Complex where
    Complex: From<T>, 
[src]

impl Inv for Complex[src]

type Output = Complex

The result after applying the operator.

impl<'a> Mul<&'a Complex> for Complex[src]

type Output = Complex

The resulting type after applying the * operator.

impl<'a> Mul<&'a Complex> for &'a Complex[src]

type Output = Complex

The resulting type after applying the * operator.

impl<B> Mul<B> for Complex where
    Complex: Mul<B, Output = Complex>, 
[src]

type Output = Complex

The resulting type after applying the * operator.

impl<'a, B> Mul<B> for &'a Complex where
    Complex: Mul<B, Output = Complex>, 
[src]

type Output = Complex

The resulting type after applying the * operator.

impl Mul<Complex> for Complex[src]

type Output = Complex

The resulting type after applying the * operator.

impl<'a> Mul<Complex> for &'a Complex[src]

type Output = Complex

The resulting type after applying the * operator.

impl<'a> MulAssign<&'a Complex> for Complex[src]

impl<B> MulAssign<B> for Complex where
    Complex: MulAssign<B>, 
[src]

impl MulAssign<Complex> for Complex[src]

impl MulAssociative for Complex[src]

impl MulCommutative for Complex[src]

impl Neg for Complex[src]

type Output = Complex

The resulting type after applying the - operator.

impl NoZeroDivisors for Complex[src]

impl One for Complex[src]

impl PartialEq<Complex> for Complex[src]

impl RealExponential for Complex[src]

impl StructuralPartialEq for Complex[src]

impl<'a> Sub<&'a Complex> for Complex[src]

type Output = Complex

The resulting type after applying the - operator.

impl<'a> Sub<&'a Complex> for &'a Complex[src]

type Output = Complex

The resulting type after applying the - operator.

impl<B> Sub<B> for Complex where
    Complex: Sub<B, Output = Complex>, 
[src]

type Output = Complex

The resulting type after applying the - operator.

impl<'a, B> Sub<B> for &'a Complex where
    Complex: Sub<B, Output = Complex>, 
[src]

type Output = Complex

The resulting type after applying the - operator.

impl Sub<Complex> for Complex[src]

type Output = Complex

The resulting type after applying the - operator.

impl<'a> Sub<Complex> for &'a Complex[src]

type Output = Complex

The resulting type after applying the - operator.

impl<'a> SubAssign<&'a Complex> for Complex[src]

impl<B> SubAssign<B> for Complex where
    Complex: SubAssign<B>, 
[src]

impl SubAssign<Complex> for Complex[src]

impl Trig for Complex[src]

impl Zero for Complex[src]

Auto Trait Implementations

impl RefUnwindSafe for Complex

impl Send for Complex

impl Sync for Complex

impl Unpin for Complex

impl UnwindSafe for Complex

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Az for T[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> CheckedAs for T[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<G> MulN for G where
    G: AddSemigroup + Zero
[src]

impl<G> MulZ for G where
    G: AddMonoid + Negatable
[src]

impl<T> OverflowingAs for T[src]

impl<G> PowN for G where
    G: MulSemigroup + One
[src]

impl<G> PowZ for G where
    G: MulMonoid + Invertable
[src]

impl<T> SaturatingAs for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> UnwrappedAs for T[src]

impl<T> WrappingAs for T[src]