[−][src]Struct wll::Complex
Generic complex number.
Fields
re: T
Real part.
im: T
Imaginary part.
Implementations
impl<T> Complex<T>
[src]
impl<T> Complex<T> where
T: Clone + Add<Output = T> + Mul<Output = T>,
[src]
T: Clone + Add<Output = T> + Mul<Output = T>,
impl<T> Complex<T> where
T: Clone + Neg<Output = T>,
[src]
T: Clone + Neg<Output = T>,
Trait Implementations
impl<'a, T> Add<&'a Complex<T>> for Complex<T> where
T: Clone + Add<Output = T>,
[src]
T: Clone + Add<Output = T>,
type Output = Complex<T>
The resulting type after applying the +
operator.
fn add(self, rhs: &'a Complex<T>) -> Self::Output
[src]
impl<'a, 'b, T> Add<&'b Complex<T>> for &'a Complex<T> where
T: Clone + Add<Output = T>,
[src]
T: Clone + Add<Output = T>,
type Output = Complex<T>
The resulting type after applying the +
operator.
fn add(self, rhs: &'b Complex<T>) -> Self::Output
[src]
impl<T> Add<Complex<T>> for Complex<T> where
T: Clone + Add<Output = T>,
[src]
T: Clone + Add<Output = T>,
type Output = Self
The resulting type after applying the +
operator.
fn add(self, rhs: Self) -> Self::Output
[src]
impl<'a, T> Add<Complex<T>> for &'a Complex<T> where
T: Clone + Add<Output = T>,
[src]
T: Clone + Add<Output = T>,
type Output = Complex<T>
The resulting type after applying the +
operator.
fn add(self, rhs: Complex<T>) -> Self::Output
[src]
impl<T> AddAssign<Complex<T>> for Complex<T> where
T: AddAssign,
[src]
T: AddAssign,
fn add_assign(&mut self, rhs: Self)
[src]
impl<T: Clone> Clone for Complex<T>
[src]
impl<T: Copy> Copy for Complex<T>
[src]
impl<T: Debug> Debug for Complex<T>
[src]
impl<T: Default> Default for Complex<T>
[src]
impl<'a, T> Div<&'a Complex<T>> for Complex<T> where
T: Clone + Add<Output = T> + Sub<Output = T> + Mul<Output = T> + Div<Output = T>,
[src]
T: Clone + Add<Output = T> + Sub<Output = T> + Mul<Output = T> + Div<Output = T>,
type Output = Complex<T>
The resulting type after applying the /
operator.
fn div(self, rhs: &'a Complex<T>) -> Self::Output
[src]
impl<'a, 'b, T> Div<&'b Complex<T>> for &'a Complex<T> where
T: Clone + Add<Output = T> + Sub<Output = T> + Mul<Output = T> + Div<Output = T>,
[src]
T: Clone + Add<Output = T> + Sub<Output = T> + Mul<Output = T> + Div<Output = T>,
type Output = Complex<T>
The resulting type after applying the /
operator.
fn div(self, rhs: &'b Complex<T>) -> Self::Output
[src]
impl<T> Div<Complex<T>> for Complex<T> where
T: Clone + Add<Output = T> + Sub<Output = T> + Mul<Output = T> + Div<Output = T>,
[src]
T: Clone + Add<Output = T> + Sub<Output = T> + Mul<Output = T> + Div<Output = T>,
type Output = Self
The resulting type after applying the /
operator.
fn div(self, rhs: Self) -> Self::Output
[src]
impl<'a, T> Div<Complex<T>> for &'a Complex<T> where
T: Clone + Add<Output = T> + Sub<Output = T> + Mul<Output = T> + Div<Output = T>,
[src]
T: Clone + Add<Output = T> + Sub<Output = T> + Mul<Output = T> + Div<Output = T>,
type Output = Complex<T>
The resulting type after applying the /
operator.
fn div(self, rhs: Complex<T>) -> Self::Output
[src]
impl<T> DivAssign<Complex<T>> for Complex<T> where
T: Clone + AddAssign + SubAssign + MulAssign + DivAssign,
[src]
T: Clone + AddAssign + SubAssign + MulAssign + DivAssign,
fn div_assign(&mut self, rhs: Self)
[src]
impl<T: Eq> Eq for Complex<T>
[src]
impl<'a, T> From<&'a T> for Complex<T> where
T: Clone + Default,
[src]
T: Clone + Default,
impl<T> From<T> for Complex<T> where
T: Default,
[src]
T: Default,
impl<T: Hash> Hash for Complex<T>
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl InputAdaptor for Complex<f32>
[src]
impl InputAdaptor for Complex<f64>
[src]
impl<'a, T> Mul<&'a Complex<T>> for Complex<T> where
T: Clone + Add<Output = T> + Sub<Output = T> + Mul<Output = T>,
[src]
T: Clone + Add<Output = T> + Sub<Output = T> + Mul<Output = T>,
type Output = Complex<T>
The resulting type after applying the *
operator.
fn mul(self, rhs: &'a Complex<T>) -> Self::Output
[src]
impl<'a, 'b, T> Mul<&'b Complex<T>> for &'a Complex<T> where
T: Clone + Add<Output = T> + Sub<Output = T> + Mul<Output = T>,
[src]
T: Clone + Add<Output = T> + Sub<Output = T> + Mul<Output = T>,
type Output = Complex<T>
The resulting type after applying the *
operator.
fn mul(self, rhs: &'b Complex<T>) -> Self::Output
[src]
impl<T> Mul<Complex<T>> for Complex<T> where
T: Clone + Add<Output = T> + Sub<Output = T> + Mul<Output = T>,
[src]
T: Clone + Add<Output = T> + Sub<Output = T> + Mul<Output = T>,
type Output = Self
The resulting type after applying the *
operator.
fn mul(self, rhs: Self) -> Self::Output
[src]
impl<'a, T> Mul<Complex<T>> for &'a Complex<T> where
T: Clone + Add<Output = T> + Sub<Output = T> + Mul<Output = T>,
[src]
T: Clone + Add<Output = T> + Sub<Output = T> + Mul<Output = T>,
type Output = Complex<T>
The resulting type after applying the *
operator.
fn mul(self, rhs: Complex<T>) -> Self::Output
[src]
impl<T> MulAssign<Complex<T>> for Complex<T> where
T: Clone + AddAssign + SubAssign + MulAssign,
[src]
T: Clone + AddAssign + SubAssign + MulAssign,
fn mul_assign(&mut self, rhs: Self)
[src]
impl<T> Neg for Complex<T> where
T: Neg<Output = T>,
[src]
T: Neg<Output = T>,
type Output = Self
The resulting type after applying the -
operator.
fn neg(self) -> Self::Output
[src]
impl<'a, T> Neg for &'a Complex<T> where
T: Clone + Neg<Output = T>,
[src]
T: Clone + Neg<Output = T>,
type Output = Complex<T>
The resulting type after applying the -
operator.
fn neg(self) -> Self::Output
[src]
impl OutputAdaptor for Complex<f32>
[src]
impl OutputAdaptor for Complex<f64>
[src]
impl OutputAdaptor for Complex<i128>
[src]
impl OutputAdaptor for Complex<u128>
[src]
impl OutputAdaptor for Complex<isize>
[src]
impl OutputAdaptor for Complex<usize>
[src]
impl OutputAdaptor for Complex<i8>
[src]
impl OutputAdaptor for Complex<u8>
[src]
impl OutputAdaptor for Complex<i16>
[src]
impl OutputAdaptor for Complex<u16>
[src]
impl OutputAdaptor for Complex<i32>
[src]
impl OutputAdaptor for Complex<u32>
[src]
impl OutputAdaptor for Complex<i64>
[src]
impl OutputAdaptor for Complex<u64>
[src]
impl<T: PartialEq> PartialEq<Complex<T>> for Complex<T>
[src]
impl<T> StructuralEq for Complex<T>
[src]
impl<T> StructuralPartialEq for Complex<T>
[src]
impl<'a, T> Sub<&'a Complex<T>> for Complex<T> where
T: Clone + Sub<Output = T>,
[src]
T: Clone + Sub<Output = T>,
type Output = Complex<T>
The resulting type after applying the -
operator.
fn sub(self, rhs: &'a Complex<T>) -> Self::Output
[src]
impl<'a, 'b, T> Sub<&'b Complex<T>> for &'a Complex<T> where
T: Clone + Sub<Output = T>,
[src]
T: Clone + Sub<Output = T>,
type Output = Complex<T>
The resulting type after applying the -
operator.
fn sub(self, rhs: &'b Complex<T>) -> Self::Output
[src]
impl<T> Sub<Complex<T>> for Complex<T> where
T: Clone + Sub<Output = T>,
[src]
T: Clone + Sub<Output = T>,
type Output = Self
The resulting type after applying the -
operator.
fn sub(self, rhs: Self) -> Self::Output
[src]
impl<'a, T> Sub<Complex<T>> for &'a Complex<T> where
T: Clone + Sub<Output = T>,
[src]
T: Clone + Sub<Output = T>,
type Output = Complex<T>
The resulting type after applying the -
operator.
fn sub(self, rhs: Complex<T>) -> Self::Output
[src]
impl<T> SubAssign<Complex<T>> for Complex<T> where
T: SubAssign,
[src]
T: SubAssign,
fn sub_assign(&mut self, rhs: Self)
[src]
Auto Trait Implementations
impl<T> RefUnwindSafe for Complex<T> where
T: RefUnwindSafe,
T: RefUnwindSafe,
impl<T> Send for Complex<T> where
T: Send,
T: Send,
impl<T> Sync for Complex<T> where
T: Sync,
T: Sync,
impl<T> Unpin for Complex<T> where
T: Unpin,
T: Unpin,
impl<T> UnwindSafe for Complex<T> where
T: UnwindSafe,
T: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> 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, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,