c

Struct c 

Source
pub struct c<T: Copy + PartialEq>(pub T, pub T);

Tuple Fields§

§0: T§1: T

Implementations§

Source§

impl<T: Copy + PartialEq> c<T>

Source

pub fn Re(&self) -> T

Extracts the real part of the complex number.

Source

pub fn Im(&self) -> T

Extracts the imaginary part of the complex number.

Source§

impl<T: Copy + PartialEq + Neg<Output = T>> c<T>

Returns the conjugated complex number.

Source

pub fn conj(&self) -> c<T>

Source§

impl<T: Copy + PartialEq + Add<Output = T> + Mul<Output = T>> c<T>

Returns the square of the euclidean norm: |z|^2

Source

pub fn r_square(&self) -> T

Trait Implementations§

Source§

impl<T: Add<Output = T> + Copy + PartialEq> Add<&c<T>> for &c<T>

Source§

type Output = c<T>

The resulting type after applying the + operator.
Source§

fn add(self, rhs: &c<T>) -> Self::Output

Performs the + operation. Read more
Source§

impl<T: Add<Output = T> + Copy + PartialEq> Add<&c<T>> for c<T>

Source§

type Output = c<T>

The resulting type after applying the + operator.
Source§

fn add(self, rhs: &c<T>) -> Self::Output

Performs the + operation. Read more
Source§

impl<T: Add<Output = T> + Copy + PartialEq> Add<T> for &c<T>

Source§

type Output = c<T>

The resulting type after applying the + operator.
Source§

fn add(self, rhs: T) -> Self::Output

Performs the + operation. Read more
Source§

impl<T: Add<Output = T> + Copy + PartialEq> Add<T> for c<T>

Source§

type Output = c<T>

The resulting type after applying the + operator.
Source§

fn add(self, rhs: T) -> Self::Output

Performs the + operation. Read more
Source§

impl<T: Add<Output = T> + Copy + PartialEq> Add<c<T>> for &c<T>

Source§

type Output = c<T>

The resulting type after applying the + operator.
Source§

fn add(self, rhs: c<T>) -> Self::Output

Performs the + operation. Read more
Source§

impl<T: Add<Output = T> + Copy + PartialEq> Add for c<T>

Source§

type Output = c<T>

The resulting type after applying the + operator.
Source§

fn add(self, rhs: c<T>) -> Self::Output

Performs the + operation. Read more
Source§

impl<T: Clone + Copy + PartialEq> Clone for c<T>

Source§

fn clone(&self) -> c<T>

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Cos<f32> for c<f32>

Source§

fn cos(z: c<f32>) -> c<f32>

Source§

impl Cos<f64> for c<f64>

Source§

fn cos(z: c<f64>) -> c<f64>

Source§

impl Cosh<f32> for c<f32>

Source§

fn cosh(z: c<f32>) -> c<f32>

Source§

impl Cosh<f64> for c<f64>

Source§

fn cosh(z: c<f64>) -> c<f64>

Source§

impl<T: Debug + Copy + PartialEq> Debug for c<T>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<T: Add<Output = T> + Mul<Output = T> + Sub<Output = T> + Div<Output = T> + Copy + PartialEq> Div<&c<T>> for &c<T>

Source§

type Output = c<T>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: &c<T>) -> Self::Output

Performs the / operation. Read more
Source§

impl<T: Add<Output = T> + Mul<Output = T> + Sub<Output = T> + Div<Output = T> + Copy + PartialEq> Div<&c<T>> for c<T>

Source§

type Output = c<T>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: &c<T>) -> Self::Output

Performs the / operation. Read more
Source§

impl<T: Add<Output = T> + Mul<Output = T> + Sub<Output = T> + Div<Output = T> + Copy + PartialEq> Div<T> for &c<T>

Source§

type Output = c<T>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: T) -> Self::Output

Performs the / operation. Read more
Source§

impl<T: Add<Output = T> + Mul<Output = T> + Sub<Output = T> + Div<Output = T> + Copy + PartialEq> Div<T> for c<T>

Source§

type Output = c<T>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: T) -> Self::Output

Performs the / operation. Read more
Source§

impl<T: Add<Output = T> + Mul<Output = T> + Sub<Output = T> + Div<Output = T> + Copy + PartialEq> Div<c<T>> for &c<T>

Source§

type Output = c<T>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: c<T>) -> Self::Output

Performs the / operation. Read more
Source§

impl<T: Add<Output = T> + Mul<Output = T> + Sub<Output = T> + Div<Output = T> + Copy + PartialEq> Div for c<T>

Source§

type Output = c<T>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: c<T>) -> Self::Output

Performs the / operation. Read more
Source§

impl Exp<f32> for c<f32>

Source§

fn exp(z: c<f32>) -> c<f32>

Source§

impl Exp<f64> for c<f64>

Source§

fn exp(z: c<f64>) -> c<f64>

Source§

impl<T: Add<Output = T> + Mul<Output = T> + Sub<Output = T> + Copy + PartialEq> Mul<&c<T>> for &c<T>

Source§

type Output = c<T>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &c<T>) -> Self::Output

Performs the * operation. Read more
Source§

impl<T: Add<Output = T> + Mul<Output = T> + Sub<Output = T> + Copy + PartialEq> Mul<&c<T>> for c<T>

Source§

type Output = c<T>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &c<T>) -> Self::Output

Performs the * operation. Read more
Source§

impl<T: Add<Output = T> + Mul<Output = T> + Sub<Output = T> + Copy + PartialEq> Mul<T> for &c<T>

Source§

type Output = c<T>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: T) -> Self::Output

Performs the * operation. Read more
Source§

impl<T: Add<Output = T> + Mul<Output = T> + Sub<Output = T> + Copy + PartialEq> Mul<T> for c<T>

Source§

type Output = c<T>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: T) -> Self::Output

Performs the * operation. Read more
Source§

impl<T: Add<Output = T> + Mul<Output = T> + Sub<Output = T> + Copy + PartialEq> Mul<c<T>> for &c<T>

Source§

type Output = c<T>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: c<T>) -> Self::Output

Performs the * operation. Read more
Source§

impl<T: Add<Output = T> + Mul<Output = T> + Sub<Output = T> + Copy + PartialEq> Mul for c<T>

Source§

type Output = c<T>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: c<T>) -> Self::Output

Performs the * operation. Read more
Source§

impl<T: Neg<Output = T> + Copy + PartialEq> Neg for &c<T>

Source§

type Output = c<T>

The resulting type after applying the - operator.
Source§

fn neg(self) -> Self::Output

Performs the unary - operation. Read more
Source§

impl<T: Neg<Output = T> + Copy + PartialEq> Neg for c<T>

Source§

type Output = c<T>

The resulting type after applying the - operator.
Source§

fn neg(self) -> Self::Output

Performs the unary - operation. Read more
Source§

impl<T: PartialEq + Copy + PartialEq> PartialEq for c<T>

Source§

fn eq(&self, other: &c<T>) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Pow<i128, f32> for c<f32>

Source§

fn pow(&self, n: i128) -> c<f32>

Source§

impl Pow<i128, f64> for c<f64>

Source§

fn pow(&self, n: i128) -> c<f64>

Source§

impl Pow<i32, f32> for c<f32>

Source§

fn pow(&self, n: i32) -> c<f32>

Source§

impl Pow<i32, f64> for c<f64>

Source§

fn pow(&self, n: i32) -> c<f64>

Source§

impl Pow<i64, f32> for c<f32>

Source§

fn pow(&self, n: i64) -> c<f32>

Source§

impl Pow<i64, f64> for c<f64>

Source§

fn pow(&self, n: i64) -> c<f64>

Source§

impl Pow<i8, f32> for c<f32>

Source§

fn pow(&self, n: i8) -> c<f32>

Source§

impl Pow<i8, f64> for c<f64>

Source§

fn pow(&self, n: i8) -> c<f64>

Source§

impl Pow<u128, f32> for c<f32>

Source§

fn pow(&self, n: u128) -> c<f32>

Source§

impl Pow<u128, f64> for c<f64>

Source§

fn pow(&self, n: u128) -> c<f64>

Source§

impl Pow<u32, f32> for c<f32>

Source§

fn pow(&self, n: u32) -> c<f32>

Source§

impl Pow<u32, f64> for c<f64>

Source§

fn pow(&self, n: u32) -> c<f64>

Source§

impl Pow<u64, f32> for c<f32>

Source§

fn pow(&self, n: u64) -> c<f32>

Source§

impl Pow<u64, f64> for c<f64>

Source§

fn pow(&self, n: u64) -> c<f64>

Source§

impl Pow<u8, f32> for c<f32>

Source§

fn pow(&self, n: u8) -> c<f32>

Source§

impl Pow<u8, f64> for c<f64>

Source§

fn pow(&self, n: u8) -> c<f64>

Source§

impl Sin<f32> for c<f32>

Source§

fn sin(z: c<f32>) -> c<f32>

Source§

impl Sin<f64> for c<f64>

Source§

fn sin(z: c<f64>) -> c<f64>

Source§

impl Sinh<f32> for c<f32>

Source§

fn sinh(z: c<f32>) -> c<f32>

Source§

impl Sinh<f64> for c<f64>

Source§

fn sinh(z: c<f64>) -> c<f64>

Source§

impl<T: Sub<Output = T> + Copy + PartialEq> Sub<&c<T>> for &c<T>

Source§

type Output = c<T>

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: &c<T>) -> Self::Output

Performs the - operation. Read more
Source§

impl<T: Sub<Output = T> + Copy + PartialEq> Sub<&c<T>> for c<T>

Source§

type Output = c<T>

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: &c<T>) -> Self::Output

Performs the - operation. Read more
Source§

impl<T: Sub<Output = T> + Copy + PartialEq> Sub<T> for &c<T>

Source§

type Output = c<T>

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: T) -> Self::Output

Performs the - operation. Read more
Source§

impl<T: Sub<Output = T> + Copy + PartialEq> Sub<T> for c<T>

Source§

type Output = c<T>

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: T) -> Self::Output

Performs the - operation. Read more
Source§

impl<T: Sub<Output = T> + Copy + PartialEq> Sub<c<T>> for &c<T>

Source§

type Output = c<T>

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: c<T>) -> Self::Output

Performs the - operation. Read more
Source§

impl<T: Sub<Output = T> + Copy + PartialEq> Sub for c<T>

Source§

type Output = c<T>

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: c<T>) -> Self::Output

Performs the - operation. Read more
Source§

impl<T: Copy + Copy + PartialEq> Copy for c<T>

Source§

impl<T: Copy + PartialEq> StructuralPartialEq for c<T>

Auto Trait Implementations§

§

impl<T> Freeze for c<T>
where T: Freeze,

§

impl<T> RefUnwindSafe for c<T>
where T: RefUnwindSafe,

§

impl<T> Send for c<T>
where T: Send,

§

impl<T> Sync for c<T>
where T: Sync,

§

impl<T> Unpin for c<T>
where T: Unpin,

§

impl<T> UnwindSafe for c<T>
where T: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.