[−][src]Struct cplx::Complex
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: Clone> Clone for Complex<A, S>
[src]
fn clone(&self) -> Self
[src]
default fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
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.
fn div(self, other: Self) -> Self
[src]
impl<S: Sign<A>, A: PartialEq> PartialEq<Complex<A, S>> for Complex<A, S>
[src]
fn eq(&self, Complex: &Self) -> bool
[src]
#[must_use]
default fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
default fn ne(&self, other: &Rhs) -> boolThis 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]
Z0: Sign<A>,
impl<S: Sign<A>, A: Copy> Copy for Complex<A, S>
[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.
fn add(self, Complex: Self) -> Self
[src]
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.
fn sub(self, Complex: Self) -> Self
[src]
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.
fn mul(self, Complex: Self) -> Self
[src]
impl<S: Sign<A>, A: Neg<Output = A>> Neg for Complex<A, S>
[src]
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,
A: Send,
S: Send,
impl<A, S> Sync for Complex<A, S> where
A: Sync,
S: Sync,
A: Sync,
S: Sync,
Blanket Implementations
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> From for T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Same for T
[src]
type Output = T
Should always be Self