Struct cplx::Complex
[−]
[src]
pub struct Complex<A, S: Sign<A> = N1>(_, _, _);
Cayley-Dickson construction
Methods
impl<S: Sign<A>, A> Complex<A, S>
[src]
Trait Implementations
impl<A: Debug, S: Debug + Sign<A>> Debug for Complex<A, S>
[src]
impl<S: Sign<A>, A: Clone> Clone for Complex<A, S>
[src]
fn clone(&self) -> Self
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl<S: Sign<A>, A: Copy> Copy for Complex<A, S>
[src]
impl<S: Sign<A>, A: PartialEq> PartialEq for Complex<A, S>
[src]
fn eq(&self, Complex: &Self) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
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: Add<Output = A> + Neg<Output = A> + Conjugable> Conjugable for Complex<A, S>
[src]
impl<S: Sign<A>, A: Add<Output = A>> Add for Complex<A, S>
[src]
type Output = Self
The resulting type after applying the +
operator.
fn add(self, Complex: Self) -> Self
[src]
Performs the +
operation.
impl<S: Sign<A>, A: Sub<Output = A>> Sub for Complex<A, S>
[src]
type Output = Self
The resulting type after applying the -
operator.
fn sub(self, Complex: Self) -> Self
[src]
Performs the -
operation.
impl<S: Sign<A>, A: Neg<Output = A>> Neg for Complex<A, S>
[src]
type Output = Self
The resulting type after applying the -
operator.
fn neg(self) -> Self
[src]
Performs the unary -
operation.
impl<S: Sign<A>, A: Copy + Add<Output = A> + Conjugable + Mul<Output = A>> Mul for Complex<A, S>
[src]
type Output = Self
The resulting type after applying the *
operator.
fn mul(self, Complex: Self) -> Self
[src]
Performs the *
operation.