[][src]Struct cplx::Complex

pub struct Complex<A, S: Sign<A> = N1>(_, _, _);

Cayley-Dickson construction

Methods

impl<S: Sign<A>, A> Complex<A, S>[src]

pub const fn from_rect(re: A, im: A) -> Self[src]

pub const fn into_rect(self) -> (A, A)[src]

pub const fn to_rect(self) -> (A, A)[src]

Deprecated:

use into_rect

Trait Implementations

impl<S: Sign<A>, A: Add<Output = A> + Neg<Output = A> + Conjugable> Conjugable for Complex<A, S>[src]

impl<S: Sign<A>, A: Copy> Copy for Complex<A, S>[src]

impl<A: Debug, S: Debug + Sign<A>> Debug for Complex<A, S>[src]

impl<S: Sign<A>, A: Copy + Add<Output = A> + Neg<Output = A> + Conjugable + Mul<Output = A> + Div<Output = A>> Div<Complex<A, S>> for Complex<A, S>[src]

type Output = Self

The resulting type after applying the / operator.

impl<S: Sign<A>, A: PartialEq> PartialEq<Complex<A, S>> for Complex<A, S>[src]

#[must_use]
default fn ne(&self, other: &Rhs) -> bool
1.0.0
[src]

This method tests for !=.

impl<S: Sign<A>, A: Eq> Eq for Complex<A, S>[src]

impl<S: Sign<A>, A: Copy> From<A> for Complex<A, S> where
    Z0: Sign<A>, 
[src]

impl<S: Sign<A>, A: Add<Output = A>> Add<Complex<A, S>> for Complex<A, S>[src]

type Output = Self

The resulting type after applying the + operator.

impl<S: Sign<A>, A: Sub<Output = A>> Sub<Complex<A, S>> for Complex<A, S>[src]

type Output = Self

The resulting type after applying the - operator.

impl<S: Sign<A>, A: Copy + Add<Output = A> + Conjugable + Mul<Output = A>> Mul<Complex<A, S>> for Complex<A, S>[src]

type Output = Self

The resulting type after applying the * operator.

impl<S: Sign<A>, A: Neg<Output = A>> Neg for Complex<A, S>[src]

type Output = Self

The resulting type after applying the - operator.

impl<S: Sign<A>, A: Clone> Clone for Complex<A, S>[src]

default fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl<S: Sign<A>, A: Zero> Zero for Complex<A, S>[src]

impl<S: Sign<A>, A: Zero + One> One for Complex<A, S>[src]

Auto Trait Implementations

impl<A, S> Send for Complex<A, S> where
    A: Send,
    S: Send

impl<A, S> Sync for Complex<A, S> where
    A: Sync,
    S: Sync

Blanket Implementations

impl<T> From for T[src]

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

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto 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, U> Into for T where
    U: From<T>, 
[src]

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

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

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

impl<T> Same for T[src]

type Output = T

Should always be Self