QuadInt

Struct QuadInt 

Source
pub struct QuadInt<I, const D: i32>(/* private fields */)
where
    I: Integer,
    for<'x> &'x I: IntOps<I>;

Implementations§

Source§

impl<I, const D: i32> QuadInt<I, D>
where I: Integer, for<'x> &'x I: IntOps<I>,

Source

pub fn new(a: I, b: I) -> Self

Source

pub fn omega() -> Self

Source

pub fn is_rational(&self) -> bool

Source

pub fn left(&self) -> &I

Source

pub fn right(&self) -> &I

Source

pub fn pair_into(self) -> (I, I)

Source

pub fn pair(&self) -> (&I, &I)

Source

pub fn conj(&self) -> Self

Source

pub fn norm(&self) -> I

Trait Implementations§

Source§

impl<'a, 'b, I, const D: i32> Add<&'b QuadInt<I, D>> for &'a QuadInt<I, D>
where I: Integer, for<'x> &'x I: IntOps<I>,

Source§

type Output = QuadInt<I, D>

The resulting type after applying the + operator.
Source§

fn add(self, rhs: &'b QuadInt<I, D>) -> Self::Output

Performs the + operation. Read more
Source§

impl<'a, 'b, I, const D: i32> Add<&'b QuadInt<I, D>> for QuadInt<I, D>
where I: Integer, for<'x> &'x I: IntOps<I>,

Source§

type Output = QuadInt<I, D>

The resulting type after applying the + operator.
Source§

fn add(self, rhs: &'b QuadInt<I, D>) -> Self::Output

Performs the + operation. Read more
Source§

impl<'a, 'b, I, const D: i32> Add<QuadInt<I, D>> for &'a QuadInt<I, D>
where I: Integer, for<'x> &'x I: IntOps<I>,

Source§

type Output = QuadInt<I, D>

The resulting type after applying the + operator.
Source§

fn add(self, rhs: QuadInt<I, D>) -> Self::Output

Performs the + operation. Read more
Source§

impl<'a, 'b, I, const D: i32> Add for QuadInt<I, D>
where I: Integer, for<'x> &'x I: IntOps<I>,

Source§

type Output = QuadInt<I, D>

The resulting type after applying the + operator.
Source§

fn add(self, rhs: QuadInt<I, D>) -> Self::Output

Performs the + operation. Read more
Source§

impl<'a, 'b, I, const D: i32> AddAssign<&'b QuadInt<I, D>> for QuadInt<I, D>
where I: Integer, for<'x> &'x I: IntOps<I>,

Source§

fn add_assign(&mut self, rhs: &'b QuadInt<I, D>)

Performs the += operation. Read more
Source§

impl<'a, 'b, I, const D: i32> AddAssign for QuadInt<I, D>
where I: Integer, for<'x> &'x I: IntOps<I>,

Source§

fn add_assign(&mut self, rhs: QuadInt<I, D>)

Performs the += operation. Read more
Source§

impl<I, const D: i32> AddMon for QuadInt<I, D>
where I: Integer, for<'x> &'x I: IntOps<I>,

Source§

fn sum<A, I>(itr: I) -> Self
where Self: AddAssign<A>, I: IntoIterator<Item = A>,

Source§

impl<I, const D: i32> Clone for QuadInt<I, D>
where I: Integer + Clone, for<'x> &'x I: IntOps<I>,

Source§

fn clone(&self) -> QuadInt<I, D>

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<I, const D: i32> Debug for QuadInt<I, D>
where I: Integer, for<'x> &'x I: IntOps<I>,

Source§

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

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

impl<I, const D: i32> Default for QuadInt<I, D>
where I: Integer + Default, for<'x> &'x I: IntOps<I>,

Source§

fn default() -> QuadInt<I, D>

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

impl<I, const D: i32> Display for QuadInt<I, D>
where I: Integer, for<'x> &'x I: IntOps<I>,

Source§

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

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

impl<'a, 'b, I> Div<&'b QuadInt<I, -1>> for &'a GaussInt<I>
where I: Integer, for<'x> &'x I: IntOps<I>,

Source§

type Output = QuadInt<I, -1>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: &'b GaussInt<I>) -> Self::Output

Performs the / operation. Read more
Source§

impl<'a, 'b, I> Div<&'b QuadInt<I, -1>> for GaussInt<I>
where I: Integer, for<'x> &'x I: IntOps<I>,

Source§

type Output = QuadInt<I, -1>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: &'b GaussInt<I>) -> Self::Output

Performs the / operation. Read more
Source§

impl<'a, 'b, I> Div<&'b QuadInt<I, -3>> for &'a EisenInt<I>
where I: Integer, for<'x> &'x I: IntOps<I>,

Source§

type Output = QuadInt<I, -3>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: &'b EisenInt<I>) -> Self::Output

Performs the / operation. Read more
Source§

impl<'a, 'b, I> Div<&'b QuadInt<I, -3>> for EisenInt<I>
where I: Integer, for<'x> &'x I: IntOps<I>,

Source§

type Output = QuadInt<I, -3>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: &'b EisenInt<I>) -> Self::Output

Performs the / operation. Read more
Source§

impl<'a, 'b, I> Div<QuadInt<I, -1>> for &'a GaussInt<I>
where I: Integer, for<'x> &'x I: IntOps<I>,

Source§

type Output = QuadInt<I, -1>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: GaussInt<I>) -> Self::Output

Performs the / operation. Read more
Source§

impl<'a, 'b, I> Div<QuadInt<I, -3>> for &'a EisenInt<I>
where I: Integer, for<'x> &'x I: IntOps<I>,

Source§

type Output = QuadInt<I, -3>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: EisenInt<I>) -> Self::Output

Performs the / operation. Read more
Source§

impl<'a, 'b, I> DivAssign<&'b QuadInt<I, -1>> for GaussInt<I>
where I: Integer, for<'x> &'x I: IntOps<I>,

Source§

fn div_assign(&mut self, rhs: &'b GaussInt<I>)

Performs the /= operation. Read more
Source§

impl<'a, 'b, I> DivAssign<&'b QuadInt<I, -3>> for EisenInt<I>
where I: Integer, for<'x> &'x I: IntOps<I>,

Source§

fn div_assign(&mut self, rhs: &'b EisenInt<I>)

Performs the /= operation. Read more
Source§

impl<I, const D: i32> Elem for QuadInt<I, D>
where I: Integer, for<'x> &'x I: IntOps<I>,

Source§

impl<I> EucRing for QuadInt<I, -1>
where I: Integer, for<'x> &'x I: IntOps<I>,

Source§

fn divides(&self, y: &Self) -> bool

Source§

fn gcd(x: &Self, y: &Self) -> Self

Source§

fn gcdx(x: &Self, y: &Self) -> (Self, Self, Self)

Source§

fn lcm(x: &Self, y: &Self) -> Self

Source§

impl<I> EucRing for QuadInt<I, -3>
where I: Integer, for<'x> &'x I: IntOps<I>,

Source§

fn divides(&self, y: &Self) -> bool

Source§

fn gcd(x: &Self, y: &Self) -> Self

Source§

fn gcdx(x: &Self, y: &Self) -> (Self, Self, Self)

Source§

fn lcm(x: &Self, y: &Self) -> Self

Source§

impl<I, const D: i32> From<I> for QuadInt<I, D>
where I: Integer, for<'x> &'x I: IntOps<I>,

Source§

fn from(i: I) -> Self

Converts to this type from the input type.
Source§

impl<I, const D: i32> FromStr for QuadInt<I, D>
where I: Integer + FromStr, for<'x> &'x I: IntOps<I>,

Source§

type Err = ()

The associated error which can be returned from parsing.
Source§

fn from_str(s: &str) -> Result<Self, Self::Err>

Parses a string s to return a value of this type. Read more
Source§

impl<I, const D: i32> Mon for QuadInt<I, D>
where I: Integer, for<'x> &'x I: IntOps<I>,

Source§

fn product<A, I>(itr: I) -> Self
where Self: MulAssign<A>, I: IntoIterator<Item = A>,

Source§

impl<'a, 'b, I, const D: i32> Mul<&'b QuadInt<I, D>> for &'a QuadInt<I, D>
where I: Integer, for<'x> &'x I: IntOps<I>,

Source§

type Output = QuadInt<I, D>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &'b QuadInt<I, D>) -> Self::Output

Performs the * operation. Read more
Source§

impl<'a, 'b, I, const D: i32> Mul<&'b QuadInt<I, D>> for QuadInt<I, D>
where I: Integer, for<'x> &'x I: IntOps<I>,

Source§

type Output = QuadInt<I, D>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &'b QuadInt<I, D>) -> Self::Output

Performs the * operation. Read more
Source§

impl<'a, 'b, I, const D: i32> Mul<QuadInt<I, D>> for &'a QuadInt<I, D>
where I: Integer, for<'x> &'x I: IntOps<I>,

Source§

type Output = QuadInt<I, D>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: QuadInt<I, D>) -> Self::Output

Performs the * operation. Read more
Source§

impl<'a, 'b, I, const D: i32> Mul for QuadInt<I, D>
where I: Integer, for<'x> &'x I: IntOps<I>,

Source§

type Output = QuadInt<I, D>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: QuadInt<I, D>) -> Self::Output

Performs the * operation. Read more
Source§

impl<'a, 'b, I, const D: i32> MulAssign<&'b QuadInt<I, D>> for QuadInt<I, D>
where I: Integer, for<'x> &'x I: IntOps<I>,

Source§

fn mul_assign(&mut self, rhs: &'b QuadInt<I, D>)

Performs the *= operation. Read more
Source§

impl<'a, 'b, I, const D: i32> MulAssign for QuadInt<I, D>
where I: Integer, for<'x> &'x I: IntOps<I>,

Source§

fn mul_assign(&mut self, rhs: QuadInt<I, D>)

Performs the *= operation. Read more
Source§

impl<'a, I, const D: i32> Neg for &'a QuadInt<I, D>
where I: Integer, for<'x> &'x I: IntOps<I>,

Source§

type Output = QuadInt<I, D>

The resulting type after applying the - operator.
Source§

fn neg(self) -> Self::Output

Performs the unary - operation. Read more
Source§

impl<I, const D: i32> Neg for QuadInt<I, D>
where I: Integer, for<'x> &'x I: IntOps<I>,

Source§

type Output = QuadInt<I, D>

The resulting type after applying the - operator.
Source§

fn neg(self) -> Self::Output

Performs the unary - operation. Read more
Source§

impl<I, const D: i32> One for QuadInt<I, D>
where I: Integer, for<'x> &'x I: IntOps<I>,

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<I, const D: i32> PartialEq for QuadInt<I, D>
where I: Integer + PartialEq, for<'x> &'x I: IntOps<I>,

Source§

fn eq(&self, other: &QuadInt<I, D>) -> 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<'a, 'b, I> Rem<&'b QuadInt<I, -1>> for &'a GaussInt<I>
where I: Integer, for<'x> &'x I: IntOps<I>,

Source§

type Output = QuadInt<I, -1>

The resulting type after applying the % operator.
Source§

fn rem(self, rhs: &'b GaussInt<I>) -> Self::Output

Performs the % operation. Read more
Source§

impl<'a, 'b, I> Rem<&'b QuadInt<I, -1>> for GaussInt<I>
where I: Integer, for<'x> &'x I: IntOps<I>,

Source§

type Output = QuadInt<I, -1>

The resulting type after applying the % operator.
Source§

fn rem(self, rhs: &'b GaussInt<I>) -> Self::Output

Performs the % operation. Read more
Source§

impl<'a, 'b, I> Rem<&'b QuadInt<I, -3>> for &'a EisenInt<I>
where I: Integer, for<'x> &'x I: IntOps<I>,

Source§

type Output = QuadInt<I, -3>

The resulting type after applying the % operator.
Source§

fn rem(self, rhs: &'b EisenInt<I>) -> Self::Output

Performs the % operation. Read more
Source§

impl<'a, 'b, I> Rem<&'b QuadInt<I, -3>> for EisenInt<I>
where I: Integer, for<'x> &'x I: IntOps<I>,

Source§

type Output = QuadInt<I, -3>

The resulting type after applying the % operator.
Source§

fn rem(self, rhs: &'b EisenInt<I>) -> Self::Output

Performs the % operation. Read more
Source§

impl<'a, 'b, I> Rem<QuadInt<I, -1>> for &'a GaussInt<I>
where I: Integer, for<'x> &'x I: IntOps<I>,

Source§

type Output = QuadInt<I, -1>

The resulting type after applying the % operator.
Source§

fn rem(self, rhs: GaussInt<I>) -> Self::Output

Performs the % operation. Read more
Source§

impl<'a, 'b, I> Rem<QuadInt<I, -3>> for &'a EisenInt<I>
where I: Integer, for<'x> &'x I: IntOps<I>,

Source§

type Output = QuadInt<I, -3>

The resulting type after applying the % operator.
Source§

fn rem(self, rhs: EisenInt<I>) -> Self::Output

Performs the % operation. Read more
Source§

impl<'a, 'b, I> RemAssign<&'b QuadInt<I, -1>> for GaussInt<I>
where I: Integer, for<'x> &'x I: IntOps<I>,

Source§

fn rem_assign(&mut self, rhs: &'b GaussInt<I>)

Performs the %= operation. Read more
Source§

impl<'a, 'b, I> RemAssign<&'b QuadInt<I, -3>> for EisenInt<I>
where I: Integer, for<'x> &'x I: IntOps<I>,

Source§

fn rem_assign(&mut self, rhs: &'b EisenInt<I>)

Performs the %= operation. Read more
Source§

impl<I, const D: i32> Ring for QuadInt<I, D>
where I: Integer, for<'x> &'x I: IntOps<I>,

Source§

fn is_unit(&self) -> bool

Source§

fn inv(&self) -> Option<Self>

Source§

fn normalizing_unit(&self) -> Self

Source§

fn from_sign(s: Sign) -> Self

Source§

fn normalized(&self) -> Self

Source§

fn into_normalized(self) -> Self

Source§

fn is_pm_one(&self) -> bool

Source§

fn c_weight(&self) -> f64

Source§

impl<'a, 'b, I, const D: i32> Sub<&'b QuadInt<I, D>> for &'a QuadInt<I, D>
where I: Integer, for<'x> &'x I: IntOps<I>,

Source§

type Output = QuadInt<I, D>

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: &'b QuadInt<I, D>) -> Self::Output

Performs the - operation. Read more
Source§

impl<'a, 'b, I, const D: i32> Sub<&'b QuadInt<I, D>> for QuadInt<I, D>
where I: Integer, for<'x> &'x I: IntOps<I>,

Source§

type Output = QuadInt<I, D>

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: &'b QuadInt<I, D>) -> Self::Output

Performs the - operation. Read more
Source§

impl<'a, 'b, I, const D: i32> Sub<QuadInt<I, D>> for &'a QuadInt<I, D>
where I: Integer, for<'x> &'x I: IntOps<I>,

Source§

type Output = QuadInt<I, D>

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: QuadInt<I, D>) -> Self::Output

Performs the - operation. Read more
Source§

impl<'a, 'b, I, const D: i32> Sub for QuadInt<I, D>
where I: Integer, for<'x> &'x I: IntOps<I>,

Source§

type Output = QuadInt<I, D>

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: QuadInt<I, D>) -> Self::Output

Performs the - operation. Read more
Source§

impl<'a, 'b, I, const D: i32> SubAssign<&'b QuadInt<I, D>> for QuadInt<I, D>
where I: Integer, for<'x> &'x I: IntOps<I>,

Source§

fn sub_assign(&mut self, rhs: &'b QuadInt<I, D>)

Performs the -= operation. Read more
Source§

impl<'a, 'b, I, const D: i32> SubAssign for QuadInt<I, D>
where I: Integer, for<'x> &'x I: IntOps<I>,

Source§

fn sub_assign(&mut self, rhs: QuadInt<I, D>)

Performs the -= operation. Read more
Source§

impl<I, const D: i32> Zero for QuadInt<I, D>
where I: Integer, for<'x> &'x I: IntOps<I>,

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<I, const D: i32> AddGrp for QuadInt<I, D>
where I: Integer, for<'x> &'x I: IntOps<I>,

Source§

impl<'a, I, const D: i32> AddGrpOps<QuadInt<I, D>> for &'a QuadInt<I, D>
where I: Integer, for<'x> &'x I: IntOps<I>,

Source§

impl<I, const D: i32> AddGrpOps for QuadInt<I, D>
where I: Integer, for<'x> &'x I: IntOps<I>,

Source§

impl<'a, I, const D: i32> AddMonOps<QuadInt<I, D>> for &'a QuadInt<I, D>
where I: Integer, for<'x> &'x I: IntOps<I>,

Source§

impl<I, const D: i32> AddMonOps for QuadInt<I, D>
where I: Integer, for<'x> &'x I: IntOps<I>,

Source§

impl<I, const D: i32> Eq for QuadInt<I, D>
where I: Integer + Eq, for<'x> &'x I: IntOps<I>,

Source§

impl<'a, I> EucRingOps<QuadInt<I, -1>> for &'a QuadInt<I, -1>
where I: Integer, for<'x> &'x I: IntOps<I>,

Source§

impl<'a, I> EucRingOps<QuadInt<I, -3>> for &'a QuadInt<I, -3>
where I: Integer, for<'x> &'x I: IntOps<I>,

Source§

impl<I> EucRingOps for QuadInt<I, -1>
where I: Integer, for<'x> &'x I: IntOps<I>,

Source§

impl<I> EucRingOps for QuadInt<I, -3>
where I: Integer, for<'x> &'x I: IntOps<I>,

Source§

impl<'a, I, const D: i32> MonOps<QuadInt<I, D>> for &'a QuadInt<I, D>
where I: Integer, for<'x> &'x I: IntOps<I>,

Source§

impl<I, const D: i32> MonOps for QuadInt<I, D>
where I: Integer, for<'x> &'x I: IntOps<I>,

Source§

impl<'a, I, const D: i32> RingOps<QuadInt<I, D>> for &'a QuadInt<I, D>
where I: Integer, for<'x> &'x I: IntOps<I>,

Source§

impl<I, const D: i32> RingOps for QuadInt<I, D>
where I: Integer, for<'x> &'x I: IntOps<I>,

Source§

impl<I, const D: i32> StructuralPartialEq for QuadInt<I, D>
where I: Integer, for<'x> &'x I: IntOps<I>,

Auto Trait Implementations§

§

impl<I, const D: i32> Freeze for QuadInt<I, D>
where &'x I: for<'x> Sized, I: Freeze,

§

impl<I, const D: i32> RefUnwindSafe for QuadInt<I, D>
where &'x I: for<'x> Sized, I: RefUnwindSafe,

§

impl<I, const D: i32> Send for QuadInt<I, D>
where &'x I: for<'x> Sized,

§

impl<I, const D: i32> Sync for QuadInt<I, D>
where &'x I: for<'x> Sized,

§

impl<I, const D: i32> Unpin for QuadInt<I, D>
where &'x I: for<'x> Sized, I: Unpin,

§

impl<I, const D: i32> UnwindSafe for QuadInt<I, D>
where &'x I: for<'x> Sized, I: 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> CloneAnd for T
where T: Clone,

Source§

fn clone_and<F>(&self, f: F) -> Self
where F: FnOnce(&mut Self),

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> 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, Rhs> PowMod2<Rhs> for T
where T: One, Rhs: IsEven,

Source§

fn pow_mod2(self, rhs: Rhs) -> Self

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> ElemBase for T
where T: Default + PartialEq + Eq + Clone + Send + Sync + Display + Debug + 'static,

Source§

impl<T, Rhs> NumAssignOps<Rhs> for T
where T: AddAssign<Rhs> + SubAssign<Rhs> + MulAssign<Rhs> + DivAssign<Rhs> + RemAssign<Rhs>,

Source§

impl<T, Rhs, Output> NumOps<Rhs, Output> for T
where T: Sub<Rhs, Output = Output> + Mul<Rhs, Output = Output> + Div<Rhs, Output = Output> + Add<Rhs, Output = Output> + Rem<Rhs, Output = Output>,

Source§

impl<T, Base> RefNum<Base> for T
where T: NumOps<Base, Base> + for<'r> NumOps<&'r Base, Base>,