Struct mexprp::num::ComplexRugRat [] [src]

pub struct ComplexRugRat {
    pub r: Rational,
    pub i: Rational,
}

A complex number made of a real part and an imaginary part, both of which are rug::Rationals. Requires the rug feature.

Fields

The real part

The imaginary part

Methods

impl ComplexRugRat
[src]

[src]

Returns the complex conjugate of this number

Trait Implementations

impl Debug for ComplexRugRat
[src]

[src]

Formats the value using the given formatter. Read more

impl Clone for ComplexRugRat
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Num for ComplexRugRat
[src]

[src]

Attempts to create an instance of the number from an f64

[src]

Attempts to create an instance of the number from complex parts. It's possible the imaginary part will be ignored for Numbers that don't support it. Read more

[src]

Returns the name of this Num type (used for errors)

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

impl PartialOrd for ComplexRugRat
[src]

[src]

This method returns an ordering between self and other values if one exists. Read more

1.0.0
[src]

This method tests less than (for self and other) and is used by the < operator. Read more

1.0.0
[src]

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

1.0.0
[src]

This method tests greater than (for self and other) and is used by the > operator. Read more

1.0.0
[src]

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

impl PartialEq for ComplexRugRat
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

1.0.0
[src]

This method tests for !=.

impl Display for ComplexRugRat
[src]

[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl Send for ComplexRugRat

impl Sync for ComplexRugRat