C64

Struct C64 

Source
pub struct C64(pub Complex<f64>);

Tuple Fields§

§0: Complex<f64>

Implementations§

Source§

impl C64

Source

pub fn new(real: f64, imag: f64) -> C64

Source

pub fn abs(&self) -> C64

Source

pub fn to_html(&self) -> String

Source

pub fn from_le_bytes(bytes: &[u8; 16]) -> C64

Trait Implementations§

Source§

impl Add for C64

Source§

type Output = C64

The resulting type after applying the + operator.
Source§

fn add(self, other: C64) -> C64

Performs the + operation. Read more
Source§

impl AddAssign for C64

Source§

fn add_assign(&mut self, other: C64)

Performs the += operation. Read more
Source§

impl AsValueKind for C64

Source§

impl Clone for C64

Source§

fn clone(&self) -> C64

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 CompileConst for C64

Available on crate feature complex only.
Source§

impl ConstElem for C64

Available on crate feature complex only.
Source§

fn write_le(&self, out: &mut Vec<u8>)

Source§

fn from_le(bytes: &[u8]) -> C64

Source§

fn value_kind(&self) -> ValueKind

Source§

fn align() -> u8

Source§

impl Debug for C64

Source§

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

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

impl Default for C64

Source§

fn default() -> C64

Returns the “default value” for a type. Read more
Source§

impl Display for C64

Source§

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

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

impl Div for C64

Source§

type Output = C64

The resulting type after applying the / operator.
Source§

fn div(self, other: C64) -> C64

Performs the / operation. Read more
Source§

impl DivAssign for C64

Source§

fn div_assign(&mut self, other: C64)

Performs the /= operation. Read more
Source§

impl Hash for C64

Source§

fn hash<H>(&self, state: &mut H)
where H: Hasher,

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl LosslessInto<String> for C64

Available on crate features complex and string only.
Source§

impl Mul for C64

Source§

type Output = C64

The resulting type after applying the * operator.
Source§

fn mul(self, other: C64) -> C64

Performs the * operation. Read more
Source§

impl MulAssign for C64

Source§

fn mul_assign(&mut self, other: C64)

Performs the *= operation. Read more
Source§

impl Neg for C64

Source§

type Output = C64

The resulting type after applying the - operator.
Source§

fn neg(self) -> <C64 as Neg>::Output

Performs the unary - operation. Read more
Source§

impl One for C64

Source§

fn one() -> C64

Returns the multiplicative identity element of Self, 1. Read more
Source§

fn is_one(&self) -> bool

Returns true if self is equal to the multiplicative identity. Read more
Source§

fn set_one(&mut self)

Sets self to the multiplicative identity element of Self, 1.
Source§

impl PartialEq for C64

Source§

fn eq(&self, other: &C64) -> 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 PartialOrd for C64

Source§

fn partial_cmp(&self, other: &C64) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · Source§

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

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · Source§

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

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · Source§

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

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · Source§

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

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

impl PrettyPrint for C64

Source§

impl Sub for C64

Source§

type Output = C64

The resulting type after applying the - operator.
Source§

fn sub(self, other: C64) -> C64

Performs the - operation. Read more
Source§

impl SubAssign for C64

Source§

fn sub_assign(&mut self, other: C64)

Performs the -= operation. Read more
Source§

impl ToMatrix for C64

Source§

fn to_matrix(elements: Vec<C64>, rows: usize, cols: usize) -> Matrix<C64>

Source§

fn to_matrixd(elements: Vec<C64>, rows: usize, cols: usize) -> Matrix<C64>

Source§

impl ToUsize for C64

Source§

fn to_usize(&self) -> usize

Source§

impl ToValue for C64

Source§

fn to_value(&self) -> Value

Source§

impl Zero for C64

Source§

fn zero() -> C64

Returns the additive identity element of Self, 0. Read more
Source§

fn is_zero(&self) -> bool

Returns true if self is equal to the additive identity.
Source§

fn set_zero(&mut self)

Sets self to the additive identity element of Self, 0.
Source§

impl Copy for C64

Source§

impl Eq for C64

Source§

impl StructuralPartialEq for C64

Auto Trait Implementations§

§

impl Freeze for C64

§

impl RefUnwindSafe for C64

§

impl Send for C64

§

impl Sync for C64

§

impl Unpin for C64

§

impl UnwindSafe for C64

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<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
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> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<SS, SP> SupersetOf<SS> for SP
where SS: SubsetOf<SP>,

Source§

fn to_subset(&self) -> Option<SS>

The inverse inclusion map: attempts to construct self from the equivalent element of its superset. Read more
Source§

fn is_in_subset(&self) -> bool

Checks if self is actually part of its subset T (and can be converted to it).
Source§

fn to_subset_unchecked(&self) -> SS

Use with care! Same as self.to_subset but without any property checks. Always succeeds.
Source§

fn from_subset(element: &SS) -> SP

The inclusion map: converts self to the equivalent element of its superset.
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> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. 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.
Source§

impl<T, Right> ClosedAdd<Right> for T
where T: Add<Right, Output = T> + AddAssign<Right>,

Source§

impl<T, Right> ClosedAddAssign<Right> for T
where T: ClosedAdd<Right> + AddAssign<Right>,

Source§

impl<T, Right> ClosedDiv<Right> for T
where T: Div<Right, Output = T> + DivAssign<Right>,

Source§

impl<T, Right> ClosedDivAssign<Right> for T
where T: ClosedDiv<Right> + DivAssign<Right>,

Source§

impl<T, Right> ClosedMul<Right> for T
where T: Mul<Right, Output = T> + MulAssign<Right>,

Source§

impl<T, Right> ClosedMulAssign<Right> for T
where T: ClosedMul<Right> + MulAssign<Right>,

Source§

impl<T> ClosedNeg for T
where T: Neg<Output = T>,

Source§

impl<T, Right> ClosedSub<Right> for T
where T: Sub<Right, Output = T> + SubAssign<Right>,

Source§

impl<T, Right> ClosedSubAssign<Right> for T
where T: ClosedSub<Right> + SubAssign<Right>,

Source§

impl<T> Scalar for T
where T: 'static + Clone + PartialEq + Debug,