Z60

Struct Z60 

Source
pub struct Z60 { /* private fields */ }

Trait Implementations§

Source§

impl Add for Z60

Source§

type Output = Z60

The resulting type after applying the + operator.
Source§

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

Performs the + operation. Read more
Source§

impl Clone for Z60

Source§

fn clone(&self) -> Z60

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 Conj for Z60

Source§

fn conj(&self) -> Self

For representations of complex numbers, return conjugated complex number. For one-dimensional numbers, return same number.
Source§

fn co_conj(&self) -> Self

For representations of complex numbers, return number with negated real part. For one-dimensional numbers, return negation of number.
Source§

impl Debug for Z60

Source§

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

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

impl Display for Z60

Source§

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

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

impl From<<Z60 as InnerIntType>::IntType> for Z60

Source§

fn from(value: <<Self as ZZBase>::Scalar as InnerIntType>::IntType) -> Self

Converts to this type from the input type.
Source§

impl From<Z60> for ZZ60

Source§

fn from(value: Z60) -> Self

Lift real-valued ring value into the corresponding cyclomatic ring

Source§

impl Hash for Z60

Source§

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

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 InnerIntType for Z60

Source§

impl Mul for Z60

Source§

type Output = Z60

The resulting type after applying the * operator.
Source§

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

Performs the * operation. Read more
Source§

impl Neg for Z60

Source§

type Output = Z60

The resulting type after applying the - operator.
Source§

fn neg(self) -> Self

Performs the unary - operation. Read more
Source§

impl One for Z60

Source§

fn one() -> Self

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 Z60

Source§

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

Source§

type Output = Z60

The resulting type after applying the - operator.
Source§

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

Performs the - operation. Read more
Source§

impl ZSigned for Z60

Source§

fn signum(&self) -> Self

Source§

fn abs(&self) -> Self

Source§

fn is_positive(&self) -> bool

Source§

fn is_negative(&self) -> bool

Source§

fn abs_sub(&self, other: &Self) -> Self

Source§

impl ZZBase for Z60

Source§

type Scalar = Ratio<i64>

Source§

type Real = Z60

Source§

fn zz_coeffs(&self) -> &[Self::Scalar]

Source§

fn zz_coeffs_mut(&mut self) -> &mut [Self::Scalar]

Source§

fn zz_params() -> &'static ZZParams<'static>

Source§

fn zz_mul_arrays(x: &[Self::Scalar], y: &[Self::Scalar]) -> Vec<Self::Scalar>

Source§

fn zz_mul_scalar(x: &[Self::Scalar], scalar: i64) -> Vec<Self::Scalar>

Source§

fn new(coeffs: &[Self::Scalar]) -> Self

Source§

fn complex64(&self) -> Complex64

Convert to a complex floating point number.
Source§

fn turn() -> i8

Return angle representing one full turn.
Source§

fn hturn() -> i8

Return angle representing half a turn.
Source§

fn has_qturn() -> bool

Return whether this ring supports a quarter turn, i.e. can represent the imaginary unit i. Read more
Source§

fn qturn() -> i8

Return angle representing a quarter turn (if ring supports it). NOTE: In unsuitable rings this value will be incorrect (see has_turn()).
Source§

fn opt_qturn() -> Option<i8>

Return angle representing a quarter turn (if ring supports it).
Source§

fn pow(&self, i: i8) -> Self
where Self: ZCommon,

Raise to an integer power.
Source§

fn scale<I: Integer + ToPrimitive>(&self, scalar: I) -> Self
where Self: Sized,

Scalar multiplication.
Source§

fn zz_zero_vec() -> Vec<Self::Scalar>

Source§

fn zz_one_vec() -> Vec<Self::Scalar>

Source§

fn zz_add(&self, other: &Self) -> Vec<Self::Scalar>

Source§

fn zz_sub(&self, other: &Self) -> Vec<Self::Scalar>

Source§

fn zz_neg(&self) -> Vec<Self::Scalar>

Source§

fn zz_mul(&self, other: &Self) -> Vec<Self::Scalar>

Source§

impl Zero for Z60

Source§

fn zero() -> Self

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 Z60

Source§

impl Eq for Z60

Source§

impl IntRing for Z60

Source§

impl StructuralPartialEq for Z60

Source§

impl ZCommon for Z60

Source§

impl ZNum for Z60

Auto Trait Implementations§

§

impl Freeze for Z60

§

impl RefUnwindSafe for Z60

§

impl Send for Z60

§

impl Sync for Z60

§

impl Unpin for Z60

§

impl UnwindSafe for Z60

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> 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.