Struct generic_arrayvec::typenum::int::NInt [−]
Type-level signed integers with negative sign.
Methods
impl<U> NInt<U> where
U: NonZero + Unsigned,
impl<U> NInt<U> where
U: NonZero + Unsigned,
Trait Implementations
impl<U> Pow<NInt<U>> for PInt<UInt<UTerm, B1>> where
U: NonZero + Unsigned,
impl<U> Pow<NInt<U>> for PInt<UInt<UTerm, B1>> where
U: NonZero + Unsigned,
1^N = 1
type Output = PInt<UInt<UTerm, B1>>
The result of the exponentiation.
fn powi(self, NInt<U>) -> <PInt<UInt<UTerm, B1>> as Pow<NInt<U>>>::Output
fn powi(self, NInt<U>) -> <PInt<UInt<UTerm, B1>> as Pow<NInt<U>>>::Output
This function isn't used in this crate, but may be useful for others. It is implemented for primitives. Read more
impl<Ul, Ur> Pow<PInt<UInt<Ur, B1>>> for NInt<Ul> where
Ul: NonZero + Unsigned + Pow<UInt<Ur, B1>>,
Ur: Unsigned,
<Ul as Pow<UInt<Ur, B1>>>::Output: Unsigned,
<Ul as Pow<UInt<Ur, B1>>>::Output: NonZero,
impl<Ul, Ur> Pow<PInt<UInt<Ur, B1>>> for NInt<Ul> where
Ul: NonZero + Unsigned + Pow<UInt<Ur, B1>>,
Ur: Unsigned,
<Ul as Pow<UInt<Ur, B1>>>::Output: Unsigned,
<Ul as Pow<UInt<Ur, B1>>>::Output: NonZero,
N(Ul)^P(Ur) = N(Ul^Ur) if Ur is odd
type Output = NInt<<Ul as Pow<UInt<Ur, B1>>>::Output>
The result of the exponentiation.
fn powi(
self,
PInt<UInt<Ur, B1>>
) -> <NInt<Ul> as Pow<PInt<UInt<Ur, B1>>>>::Output
fn powi(
self,
PInt<UInt<Ur, B1>>
) -> <NInt<Ul> as Pow<PInt<UInt<Ur, B1>>>>::Output
This function isn't used in this crate, but may be useful for others. It is implemented for primitives. Read more
impl<U> Pow<NInt<UInt<U, B0>>> for NInt<UInt<UTerm, B1>> where
U: Unsigned,
impl<U> Pow<NInt<UInt<U, B0>>> for NInt<UInt<UTerm, B1>> where
U: Unsigned,
(-1)^N = 1 if N is even
type Output = PInt<UInt<UTerm, B1>>
The result of the exponentiation.
fn powi(
self,
NInt<UInt<U, B0>>
) -> <NInt<UInt<UTerm, B1>> as Pow<NInt<UInt<U, B0>>>>::Output
fn powi(
self,
NInt<UInt<U, B0>>
) -> <NInt<UInt<UTerm, B1>> as Pow<NInt<UInt<U, B0>>>>::Output
This function isn't used in this crate, but may be useful for others. It is implemented for primitives. Read more
impl<U> Pow<NInt<UInt<U, B1>>> for NInt<UInt<UTerm, B1>> where
U: Unsigned,
impl<U> Pow<NInt<UInt<U, B1>>> for NInt<UInt<UTerm, B1>> where
U: Unsigned,
(-1)^N = -1 if N is odd
type Output = NInt<UInt<UTerm, B1>>
The result of the exponentiation.
fn powi(
self,
NInt<UInt<U, B1>>
) -> <NInt<UInt<UTerm, B1>> as Pow<NInt<UInt<U, B1>>>>::Output
fn powi(
self,
NInt<UInt<U, B1>>
) -> <NInt<UInt<UTerm, B1>> as Pow<NInt<UInt<U, B1>>>>::Output
This function isn't used in this crate, but may be useful for others. It is implemented for primitives. Read more
impl<Ul, Ur> Pow<PInt<UInt<Ur, B0>>> for NInt<Ul> where
Ul: NonZero + Unsigned + Pow<UInt<Ur, B0>>,
Ur: Unsigned,
<Ul as Pow<UInt<Ur, B0>>>::Output: Unsigned,
<Ul as Pow<UInt<Ur, B0>>>::Output: NonZero,
impl<Ul, Ur> Pow<PInt<UInt<Ur, B0>>> for NInt<Ul> where
Ul: NonZero + Unsigned + Pow<UInt<Ur, B0>>,
Ur: Unsigned,
<Ul as Pow<UInt<Ur, B0>>>::Output: Unsigned,
<Ul as Pow<UInt<Ur, B0>>>::Output: NonZero,
N(Ul)^P(Ur) = P(Ul^Ur) if Ur is even
type Output = PInt<<Ul as Pow<UInt<Ur, B0>>>::Output>
The result of the exponentiation.
fn powi(
self,
PInt<UInt<Ur, B0>>
) -> <NInt<Ul> as Pow<PInt<UInt<Ur, B0>>>>::Output
fn powi(
self,
PInt<UInt<Ur, B0>>
) -> <NInt<Ul> as Pow<PInt<UInt<Ur, B0>>>>::Output
This function isn't used in this crate, but may be useful for others. It is implemented for primitives. Read more
impl<U> Pow<NInt<U>> for Z0 where
U: NonZero + Unsigned,
impl<U> Pow<NInt<U>> for Z0 where
U: NonZero + Unsigned,
0^N = 0
type Output = Z0
The result of the exponentiation.
fn powi(self, NInt<U>) -> <Z0 as Pow<NInt<U>>>::Output
fn powi(self, NInt<U>) -> <Z0 as Pow<NInt<U>>>::Output
This function isn't used in this crate, but may be useful for others. It is implemented for primitives. Read more
impl<U> Pow<Z0> for NInt<U> where
U: NonZero + Unsigned,
impl<U> Pow<Z0> for NInt<U> where
U: NonZero + Unsigned,
N^0 = 1
type Output = PInt<UInt<UTerm, B1>>
The result of the exponentiation.
fn powi(self, Z0) -> <NInt<U> as Pow<Z0>>::Output
fn powi(self, Z0) -> <NInt<U> as Pow<Z0>>::Output
This function isn't used in this crate, but may be useful for others. It is implemented for primitives. Read more
impl<U> NonZero for NInt<U> where
U: NonZero + Unsigned,
impl<U> NonZero for NInt<U> where
U: NonZero + Unsigned,
impl<U> Hash for NInt<U> where
U: NonZero + Unsigned + Hash,
impl<U> Hash for NInt<U> where
U: NonZero + Unsigned + Hash,
fn hash<__HU>(&self, state: &mut __HU) where
__HU: Hasher,
fn hash<__HU>(&self, state: &mut __HU) where
__HU: Hasher,
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl<U> PartialOrd<NInt<U>> for NInt<U> where
U: NonZero + Unsigned + PartialOrd<U>,
impl<U> PartialOrd<NInt<U>> for NInt<U> where
U: NonZero + Unsigned + PartialOrd<U>,
fn partial_cmp(&self, other: &NInt<U>) -> Option<Ordering>
fn partial_cmp(&self, other: &NInt<U>) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, other: &NInt<U>) -> bool
fn lt(&self, other: &NInt<U>) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, other: &NInt<U>) -> bool
fn le(&self, other: &NInt<U>) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
fn gt(&self, other: &NInt<U>) -> bool
fn gt(&self, other: &NInt<U>) -> bool
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, other: &NInt<U>) -> bool
fn ge(&self, other: &NInt<U>) -> bool
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more
impl<Ul, Ur> Div<NInt<Ur>> for PInt<Ul> where
Ul: NonZero + Unsigned + Cmp<Ur>,
Ur: NonZero + Unsigned,
PInt<Ul>: PrivateDivInt<<Ul as Cmp<Ur>>::Output, NInt<Ur>>,
impl<Ul, Ur> Div<NInt<Ur>> for PInt<Ul> where
Ul: NonZero + Unsigned + Cmp<Ur>,
Ur: NonZero + Unsigned,
PInt<Ul>: PrivateDivInt<<Ul as Cmp<Ur>>::Output, NInt<Ur>>,
$A<Ul> / $B<Ur> = $R<Ul / Ur>
type Output = <PInt<Ul> as PrivateDivInt<<Ul as Cmp<Ur>>::Output, NInt<Ur>>>::Output
The resulting type after applying the /
operator.
fn div(self, NInt<Ur>) -> <PInt<Ul> as Div<NInt<Ur>>>::Output
fn div(self, NInt<Ur>) -> <PInt<Ul> as Div<NInt<Ur>>>::Output
Performs the /
operation.
impl<Ul, Ur> Div<NInt<Ur>> for NInt<Ul> where
Ul: NonZero + Unsigned + Cmp<Ur>,
Ur: NonZero + Unsigned,
NInt<Ul>: PrivateDivInt<<Ul as Cmp<Ur>>::Output, NInt<Ur>>,
impl<Ul, Ur> Div<NInt<Ur>> for NInt<Ul> where
Ul: NonZero + Unsigned + Cmp<Ur>,
Ur: NonZero + Unsigned,
NInt<Ul>: PrivateDivInt<<Ul as Cmp<Ur>>::Output, NInt<Ur>>,
$A<Ul> / $B<Ur> = $R<Ul / Ur>
type Output = <NInt<Ul> as PrivateDivInt<<Ul as Cmp<Ur>>::Output, NInt<Ur>>>::Output
The resulting type after applying the /
operator.
fn div(self, NInt<Ur>) -> <NInt<Ul> as Div<NInt<Ur>>>::Output
fn div(self, NInt<Ur>) -> <NInt<Ul> as Div<NInt<Ur>>>::Output
Performs the /
operation.
impl<Ul, Ur> Div<PInt<Ur>> for NInt<Ul> where
Ul: NonZero + Unsigned + Cmp<Ur>,
Ur: NonZero + Unsigned,
NInt<Ul>: PrivateDivInt<<Ul as Cmp<Ur>>::Output, PInt<Ur>>,
impl<Ul, Ur> Div<PInt<Ur>> for NInt<Ul> where
Ul: NonZero + Unsigned + Cmp<Ur>,
Ur: NonZero + Unsigned,
NInt<Ul>: PrivateDivInt<<Ul as Cmp<Ur>>::Output, PInt<Ur>>,
$A<Ul> / $B<Ur> = $R<Ul / Ur>
type Output = <NInt<Ul> as PrivateDivInt<<Ul as Cmp<Ur>>::Output, PInt<Ur>>>::Output
The resulting type after applying the /
operator.
fn div(self, PInt<Ur>) -> <NInt<Ul> as Div<PInt<Ur>>>::Output
fn div(self, PInt<Ur>) -> <NInt<Ul> as Div<PInt<Ur>>>::Output
Performs the /
operation.
impl<U> Default for NInt<U> where
U: NonZero + Unsigned + Default,
impl<U> Default for NInt<U> where
U: NonZero + Unsigned + Default,
impl<Ul, Ur> Rem<NInt<Ur>> for NInt<Ul> where
Ul: NonZero + Unsigned + Rem<Ur>,
Ur: NonZero + Unsigned,
NInt<Ul>: PrivateRem<<Ul as Rem<Ur>>::Output, NInt<Ur>>,
impl<Ul, Ur> Rem<NInt<Ur>> for NInt<Ul> where
Ul: NonZero + Unsigned + Rem<Ur>,
Ur: NonZero + Unsigned,
NInt<Ul>: PrivateRem<<Ul as Rem<Ur>>::Output, NInt<Ur>>,
$A<Ul> % $B<Ur> = $R<Ul % Ur>
type Output = <NInt<Ul> as PrivateRem<<Ul as Rem<Ur>>::Output, NInt<Ur>>>::Output
The resulting type after applying the %
operator.
fn rem(self, NInt<Ur>) -> <NInt<Ul> as Rem<NInt<Ur>>>::Output
fn rem(self, NInt<Ur>) -> <NInt<Ul> as Rem<NInt<Ur>>>::Output
Performs the %
operation.
impl<Ul, Ur> Rem<PInt<Ur>> for NInt<Ul> where
Ul: NonZero + Unsigned + Rem<Ur>,
Ur: NonZero + Unsigned,
NInt<Ul>: PrivateRem<<Ul as Rem<Ur>>::Output, PInt<Ur>>,
impl<Ul, Ur> Rem<PInt<Ur>> for NInt<Ul> where
Ul: NonZero + Unsigned + Rem<Ur>,
Ur: NonZero + Unsigned,
NInt<Ul>: PrivateRem<<Ul as Rem<Ur>>::Output, PInt<Ur>>,
$A<Ul> % $B<Ur> = $R<Ul % Ur>
type Output = <NInt<Ul> as PrivateRem<<Ul as Rem<Ur>>::Output, PInt<Ur>>>::Output
The resulting type after applying the %
operator.
fn rem(self, PInt<Ur>) -> <NInt<Ul> as Rem<PInt<Ur>>>::Output
fn rem(self, PInt<Ur>) -> <NInt<Ul> as Rem<PInt<Ur>>>::Output
Performs the %
operation.
impl<Ul, Ur> Rem<NInt<Ur>> for PInt<Ul> where
Ul: NonZero + Unsigned + Rem<Ur>,
Ur: NonZero + Unsigned,
PInt<Ul>: PrivateRem<<Ul as Rem<Ur>>::Output, NInt<Ur>>,
impl<Ul, Ur> Rem<NInt<Ur>> for PInt<Ul> where
Ul: NonZero + Unsigned + Rem<Ur>,
Ur: NonZero + Unsigned,
PInt<Ul>: PrivateRem<<Ul as Rem<Ur>>::Output, NInt<Ur>>,
$A<Ul> % $B<Ur> = $R<Ul % Ur>
type Output = <PInt<Ul> as PrivateRem<<Ul as Rem<Ur>>::Output, NInt<Ur>>>::Output
The resulting type after applying the %
operator.
fn rem(self, NInt<Ur>) -> <PInt<Ul> as Rem<NInt<Ur>>>::Output
fn rem(self, NInt<Ur>) -> <PInt<Ul> as Rem<NInt<Ur>>>::Output
Performs the %
operation.
impl<U> Max<Z0> for NInt<U> where
U: Unsigned + NonZero,
impl<U> Max<Z0> for NInt<U> where
U: Unsigned + NonZero,
type Output = Z0
The type of the maximum of Self
and Rhs
fn max(self, rhs: Z0) -> <NInt<U> as Max<Z0>>::Output
fn max(self, rhs: Z0) -> <NInt<U> as Max<Z0>>::Output
Method returning the maximum
impl<U> Max<NInt<U>> for Z0 where
U: Unsigned + NonZero,
impl<U> Max<NInt<U>> for Z0 where
U: Unsigned + NonZero,
type Output = Z0
The type of the maximum of Self
and Rhs
fn max(self, NInt<U>) -> <Z0 as Max<NInt<U>>>::Output
fn max(self, NInt<U>) -> <Z0 as Max<NInt<U>>>::Output
Method returning the maximum
impl<Ul, Ur> Max<NInt<Ur>> for PInt<Ul> where
Ul: Unsigned + NonZero,
Ur: Unsigned + NonZero,
impl<Ul, Ur> Max<NInt<Ur>> for PInt<Ul> where
Ul: Unsigned + NonZero,
Ur: Unsigned + NonZero,
type Output = PInt<Ul>
The type of the maximum of Self
and Rhs
fn max(self, NInt<Ur>) -> <PInt<Ul> as Max<NInt<Ur>>>::Output
fn max(self, NInt<Ur>) -> <PInt<Ul> as Max<NInt<Ur>>>::Output
Method returning the maximum
impl<Ul, Ur> Max<PInt<Ur>> for NInt<Ul> where
Ul: Unsigned + NonZero,
Ur: Unsigned + NonZero,
impl<Ul, Ur> Max<PInt<Ur>> for NInt<Ul> where
Ul: Unsigned + NonZero,
Ur: Unsigned + NonZero,
type Output = PInt<Ur>
The type of the maximum of Self
and Rhs
fn max(self, rhs: PInt<Ur>) -> <NInt<Ul> as Max<PInt<Ur>>>::Output
fn max(self, rhs: PInt<Ur>) -> <NInt<Ul> as Max<PInt<Ur>>>::Output
Method returning the maximum
impl<Ul, Ur> Max<NInt<Ur>> for NInt<Ul> where
Ul: Unsigned + NonZero + Min<Ur>,
Ur: Unsigned + NonZero,
<Ul as Min<Ur>>::Output: Unsigned,
<Ul as Min<Ur>>::Output: NonZero,
impl<Ul, Ur> Max<NInt<Ur>> for NInt<Ul> where
Ul: Unsigned + NonZero + Min<Ur>,
Ur: Unsigned + NonZero,
<Ul as Min<Ur>>::Output: Unsigned,
<Ul as Min<Ur>>::Output: NonZero,
type Output = NInt<<Ul as Min<Ur>>::Output>
The type of the maximum of Self
and Rhs
fn max(self, NInt<Ur>) -> <NInt<Ul> as Max<NInt<Ur>>>::Output
fn max(self, NInt<Ur>) -> <NInt<Ul> as Max<NInt<Ur>>>::Output
Method returning the maximum
impl<U> Min<Z0> for NInt<U> where
U: Unsigned + NonZero,
impl<U> Min<Z0> for NInt<U> where
U: Unsigned + NonZero,
type Output = NInt<U>
The type of the minimum of Self
and Rhs
fn min(self, Z0) -> <NInt<U> as Min<Z0>>::Output
fn min(self, Z0) -> <NInt<U> as Min<Z0>>::Output
Method returning the minimum
impl<Ul, Ur> Min<PInt<Ur>> for NInt<Ul> where
Ul: Unsigned + NonZero,
Ur: Unsigned + NonZero,
impl<Ul, Ur> Min<PInt<Ur>> for NInt<Ul> where
Ul: Unsigned + NonZero,
Ur: Unsigned + NonZero,
type Output = NInt<Ul>
The type of the minimum of Self
and Rhs
fn min(self, PInt<Ur>) -> <NInt<Ul> as Min<PInt<Ur>>>::Output
fn min(self, PInt<Ur>) -> <NInt<Ul> as Min<PInt<Ur>>>::Output
Method returning the minimum
impl<U> Min<NInt<U>> for Z0 where
U: Unsigned + NonZero,
impl<U> Min<NInt<U>> for Z0 where
U: Unsigned + NonZero,
type Output = NInt<U>
The type of the minimum of Self
and Rhs
fn min(self, rhs: NInt<U>) -> <Z0 as Min<NInt<U>>>::Output
fn min(self, rhs: NInt<U>) -> <Z0 as Min<NInt<U>>>::Output
Method returning the minimum
impl<Ul, Ur> Min<NInt<Ur>> for NInt<Ul> where
Ul: Unsigned + NonZero + Max<Ur>,
Ur: Unsigned + NonZero,
<Ul as Max<Ur>>::Output: Unsigned,
<Ul as Max<Ur>>::Output: NonZero,
impl<Ul, Ur> Min<NInt<Ur>> for NInt<Ul> where
Ul: Unsigned + NonZero + Max<Ur>,
Ur: Unsigned + NonZero,
<Ul as Max<Ur>>::Output: Unsigned,
<Ul as Max<Ur>>::Output: NonZero,
type Output = NInt<<Ul as Max<Ur>>::Output>
The type of the minimum of Self
and Rhs
fn min(self, NInt<Ur>) -> <NInt<Ul> as Min<NInt<Ur>>>::Output
fn min(self, NInt<Ur>) -> <NInt<Ul> as Min<NInt<Ur>>>::Output
Method returning the minimum
impl<Ul, Ur> Min<NInt<Ur>> for PInt<Ul> where
Ul: Unsigned + NonZero,
Ur: Unsigned + NonZero,
impl<Ul, Ur> Min<NInt<Ur>> for PInt<Ul> where
Ul: Unsigned + NonZero,
Ur: Unsigned + NonZero,
type Output = NInt<Ur>
The type of the minimum of Self
and Rhs
fn min(self, rhs: NInt<Ur>) -> <PInt<Ul> as Min<NInt<Ur>>>::Output
fn min(self, rhs: NInt<Ur>) -> <PInt<Ul> as Min<NInt<Ur>>>::Output
Method returning the minimum
impl<U> Abs for NInt<U> where
U: NonZero + Unsigned,
impl<U> Abs for NInt<U> where
U: NonZero + Unsigned,
impl<U> Ord for NInt<U> where
U: NonZero + Unsigned + Ord,
impl<U> Ord for NInt<U> where
U: NonZero + Unsigned + Ord,
fn cmp(&self, other: &NInt<U>) -> Ordering
fn cmp(&self, other: &NInt<U>) -> Ordering
This method returns an Ordering
between self
and other
. Read more
fn max(self, other: Self) -> Self
1.21.0[src]
fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self
1.21.0[src]
fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
impl<Ul, Ur> Mul<NInt<Ur>> for NInt<Ul> where
Ul: NonZero + Unsigned + Mul<Ur>,
Ur: NonZero + Unsigned,
<Ul as Mul<Ur>>::Output: Unsigned,
<Ul as Mul<Ur>>::Output: NonZero,
impl<Ul, Ur> Mul<NInt<Ur>> for NInt<Ul> where
Ul: NonZero + Unsigned + Mul<Ur>,
Ur: NonZero + Unsigned,
<Ul as Mul<Ur>>::Output: Unsigned,
<Ul as Mul<Ur>>::Output: NonZero,
N(Ul) * N(Ur) = P(Ul * Ur)
type Output = PInt<<Ul as Mul<Ur>>::Output>
The resulting type after applying the *
operator.
fn mul(self, NInt<Ur>) -> <NInt<Ul> as Mul<NInt<Ur>>>::Output
fn mul(self, NInt<Ur>) -> <NInt<Ul> as Mul<NInt<Ur>>>::Output
Performs the *
operation.
impl<V, A, U> Mul<TArr<V, A>> for NInt<U> where
U: Unsigned + NonZero,
NInt<U>: Mul<A>,
NInt<U>: Mul<V>,
impl<V, A, U> Mul<TArr<V, A>> for NInt<U> where
U: Unsigned + NonZero,
NInt<U>: Mul<A>,
NInt<U>: Mul<V>,
type Output = TArr<<NInt<U> as Mul<V>>::Output, <NInt<U> as Mul<A>>::Output>
The resulting type after applying the *
operator.
fn mul(self, TArr<V, A>) -> <NInt<U> as Mul<TArr<V, A>>>::Output
fn mul(self, TArr<V, A>) -> <NInt<U> as Mul<TArr<V, A>>>::Output
Performs the *
operation.
impl<Ul, Ur> Mul<PInt<Ur>> for NInt<Ul> where
Ul: NonZero + Unsigned + Mul<Ur>,
Ur: NonZero + Unsigned,
<Ul as Mul<Ur>>::Output: Unsigned,
<Ul as Mul<Ur>>::Output: NonZero,
impl<Ul, Ur> Mul<PInt<Ur>> for NInt<Ul> where
Ul: NonZero + Unsigned + Mul<Ur>,
Ur: NonZero + Unsigned,
<Ul as Mul<Ur>>::Output: Unsigned,
<Ul as Mul<Ur>>::Output: NonZero,
N(Ul) * P(Ur) = N(Ul * Ur)
type Output = NInt<<Ul as Mul<Ur>>::Output>
The resulting type after applying the *
operator.
fn mul(self, PInt<Ur>) -> <NInt<Ul> as Mul<PInt<Ur>>>::Output
fn mul(self, PInt<Ur>) -> <NInt<Ul> as Mul<PInt<Ur>>>::Output
Performs the *
operation.
impl<U> Mul<Z0> for NInt<U> where
U: NonZero + Unsigned,
impl<U> Mul<Z0> for NInt<U> where
U: NonZero + Unsigned,
N * Z0 = Z0
type Output = Z0
The resulting type after applying the *
operator.
fn mul(self, Z0) -> <NInt<U> as Mul<Z0>>::Output
fn mul(self, Z0) -> <NInt<U> as Mul<Z0>>::Output
Performs the *
operation.
impl<Ul, Ur> Mul<NInt<Ur>> for PInt<Ul> where
Ul: NonZero + Unsigned + Mul<Ur>,
Ur: NonZero + Unsigned,
<Ul as Mul<Ur>>::Output: Unsigned,
<Ul as Mul<Ur>>::Output: NonZero,
impl<Ul, Ur> Mul<NInt<Ur>> for PInt<Ul> where
Ul: NonZero + Unsigned + Mul<Ur>,
Ur: NonZero + Unsigned,
<Ul as Mul<Ur>>::Output: Unsigned,
<Ul as Mul<Ur>>::Output: NonZero,
P(Ul) * N(Ur) = N(Ul * Ur)
type Output = NInt<<Ul as Mul<Ur>>::Output>
The resulting type after applying the *
operator.
fn mul(self, NInt<Ur>) -> <PInt<Ul> as Mul<NInt<Ur>>>::Output
fn mul(self, NInt<Ur>) -> <PInt<Ul> as Mul<NInt<Ur>>>::Output
Performs the *
operation.
impl<U> Mul<ATerm> for NInt<U> where
U: Unsigned + NonZero,
impl<U> Mul<ATerm> for NInt<U> where
U: Unsigned + NonZero,
type Output = ATerm
The resulting type after applying the *
operator.
fn mul(self, ATerm) -> <NInt<U> as Mul<ATerm>>::Output
fn mul(self, ATerm) -> <NInt<U> as Mul<ATerm>>::Output
Performs the *
operation.
impl<U> Debug for NInt<U> where
U: NonZero + Unsigned + Debug,
impl<U> Debug for NInt<U> where
U: NonZero + Unsigned + Debug,
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
Formats the value using the given formatter. Read more
impl<U> Clone for NInt<U> where
U: NonZero + Unsigned + Clone,
impl<U> Clone for NInt<U> where
U: NonZero + Unsigned + Clone,
fn clone(&self) -> NInt<U>
fn clone(&self) -> NInt<U>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl<Ul, Ur> Sub<NInt<Ur>> for NInt<Ul> where
Ul: NonZero + Unsigned,
Ur: NonZero + Unsigned + Cmp<Ul> + PrivateIntegerAdd<<Ur as Cmp<Ul>>::Output, Ul>,
impl<Ul, Ur> Sub<NInt<Ur>> for NInt<Ul> where
Ul: NonZero + Unsigned,
Ur: NonZero + Unsigned + Cmp<Ul> + PrivateIntegerAdd<<Ur as Cmp<Ul>>::Output, Ul>,
N(Ul) - N(Ur)
: We resolve this with our PrivateAdd
type Output = <Ur as PrivateIntegerAdd<<Ur as Cmp<Ul>>::Output, Ul>>::Output
The resulting type after applying the -
operator.
fn sub(self, NInt<Ur>) -> <NInt<Ul> as Sub<NInt<Ur>>>::Output
fn sub(self, NInt<Ur>) -> <NInt<Ul> as Sub<NInt<Ur>>>::Output
Performs the -
operation.
impl<Ul, Ur> Sub<PInt<Ur>> for NInt<Ul> where
Ul: NonZero + Unsigned + Add<Ur>,
Ur: NonZero + Unsigned,
<Ul as Add<Ur>>::Output: Unsigned,
<Ul as Add<Ur>>::Output: NonZero,
impl<Ul, Ur> Sub<PInt<Ur>> for NInt<Ul> where
Ul: NonZero + Unsigned + Add<Ur>,
Ur: NonZero + Unsigned,
<Ul as Add<Ur>>::Output: Unsigned,
<Ul as Add<Ur>>::Output: NonZero,
N(Ul) - P(Ur) = N(Ul + Ur)
type Output = NInt<<Ul as Add<Ur>>::Output>
The resulting type after applying the -
operator.
fn sub(self, PInt<Ur>) -> <NInt<Ul> as Sub<PInt<Ur>>>::Output
fn sub(self, PInt<Ur>) -> <NInt<Ul> as Sub<PInt<Ur>>>::Output
Performs the -
operation.
impl<U> Sub<Z0> for NInt<U> where
U: NonZero + Unsigned,
impl<U> Sub<Z0> for NInt<U> where
U: NonZero + Unsigned,
NInt - Z0 = NInt
type Output = NInt<U>
The resulting type after applying the -
operator.
fn sub(self, Z0) -> <NInt<U> as Sub<Z0>>::Output
fn sub(self, Z0) -> <NInt<U> as Sub<Z0>>::Output
Performs the -
operation.
impl<U> Sub<NInt<U>> for Z0 where
U: NonZero + Unsigned,
impl<U> Sub<NInt<U>> for Z0 where
U: NonZero + Unsigned,
Z0 - N = P
type Output = PInt<U>
The resulting type after applying the -
operator.
fn sub(self, NInt<U>) -> <Z0 as Sub<NInt<U>>>::Output
fn sub(self, NInt<U>) -> <Z0 as Sub<NInt<U>>>::Output
Performs the -
operation.
impl<Ul, Ur> Sub<NInt<Ur>> for PInt<Ul> where
Ul: NonZero + Unsigned + Add<Ur>,
Ur: NonZero + Unsigned,
<Ul as Add<Ur>>::Output: Unsigned,
<Ul as Add<Ur>>::Output: NonZero,
impl<Ul, Ur> Sub<NInt<Ur>> for PInt<Ul> where
Ul: NonZero + Unsigned + Add<Ur>,
Ur: NonZero + Unsigned,
<Ul as Add<Ur>>::Output: Unsigned,
<Ul as Add<Ur>>::Output: NonZero,
P(Ul) - N(Ur) = P(Ul + Ur)
type Output = PInt<<Ul as Add<Ur>>::Output>
The resulting type after applying the -
operator.
fn sub(self, NInt<Ur>) -> <PInt<Ul> as Sub<NInt<Ur>>>::Output
fn sub(self, NInt<Ur>) -> <PInt<Ul> as Sub<NInt<Ur>>>::Output
Performs the -
operation.
impl<U> Integer for NInt<U> where
U: NonZero + Unsigned,
impl<U> Integer for NInt<U> where
U: NonZero + Unsigned,
const I8: i8
I8: i8 = -<U>::I8
const I16: i16
I16: i16 = -<U>::I16
const I32: i32
I32: i32 = -<U>::I32
const I64: i64
I64: i64 = -<U>::I64
const ISIZE: isize
ISIZE: isize = -<U>::ISIZE
fn to_i8() -> i8
fn to_i8() -> i8
fn to_i16() -> i16
fn to_i16() -> i16
fn to_i32() -> i32
fn to_i32() -> i32
fn to_i64() -> i64
fn to_i64() -> i64
fn to_isize() -> isize
fn to_isize() -> isize
impl<U> PartialEq<NInt<U>> for NInt<U> where
U: NonZero + Unsigned + PartialEq<U>,
impl<U> PartialEq<NInt<U>> for NInt<U> where
U: NonZero + Unsigned + PartialEq<U>,
fn eq(&self, other: &NInt<U>) -> bool
fn eq(&self, other: &NInt<U>) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &NInt<U>) -> bool
fn ne(&self, other: &NInt<U>) -> bool
This method tests for !=
.
impl<Nl, Nr> Cmp<NInt<Nr>> for NInt<Nl> where
Nl: NonZero + Unsigned,
Nr: NonZero + Unsigned + Cmp<Nl>,
impl<Nl, Nr> Cmp<NInt<Nr>> for NInt<Nl> where
Nl: NonZero + Unsigned,
Nr: NonZero + Unsigned + Cmp<Nl>,
-X <==> -Y
type Output = <Nr as Cmp<Nl>>::Output
The result of the comparison. It should only ever be one of Greater
, Less
, or Equal
.
impl<U> Cmp<NInt<U>> for Z0 where
U: NonZero + Unsigned,
impl<U> Cmp<NInt<U>> for Z0 where
U: NonZero + Unsigned,
0 > -X
type Output = Greater
The result of the comparison. It should only ever be one of Greater
, Less
, or Equal
.
impl<P, N> Cmp<NInt<N>> for PInt<P> where
N: NonZero + Unsigned,
P: NonZero + Unsigned,
impl<P, N> Cmp<NInt<N>> for PInt<P> where
N: NonZero + Unsigned,
P: NonZero + Unsigned,
X > - Y
type Output = Greater
The result of the comparison. It should only ever be one of Greater
, Less
, or Equal
.
impl<U> Cmp<Z0> for NInt<U> where
U: NonZero + Unsigned,
impl<U> Cmp<Z0> for NInt<U> where
U: NonZero + Unsigned,
-X < 0
type Output = Less
The result of the comparison. It should only ever be one of Greater
, Less
, or Equal
.
impl<P, N> Cmp<PInt<P>> for NInt<N> where
N: NonZero + Unsigned,
P: NonZero + Unsigned,
impl<P, N> Cmp<PInt<P>> for NInt<N> where
N: NonZero + Unsigned,
P: NonZero + Unsigned,
-X < Y
type Output = Less
The result of the comparison. It should only ever be one of Greater
, Less
, or Equal
.
impl<U> Eq for NInt<U> where
U: NonZero + Unsigned + Eq,
impl<U> Eq for NInt<U> where
U: NonZero + Unsigned + Eq,
impl<U> Copy for NInt<U> where
U: NonZero + Unsigned + Copy,
impl<U> Copy for NInt<U> where
U: NonZero + Unsigned + Copy,
impl<Ul, Ur> Add<NInt<Ur>> for NInt<Ul> where
Ul: NonZero + Unsigned + Add<Ur>,
Ur: NonZero + Unsigned,
<Ul as Add<Ur>>::Output: Unsigned,
<Ul as Add<Ur>>::Output: NonZero,
impl<Ul, Ur> Add<NInt<Ur>> for NInt<Ul> where
Ul: NonZero + Unsigned + Add<Ur>,
Ur: NonZero + Unsigned,
<Ul as Add<Ur>>::Output: Unsigned,
<Ul as Add<Ur>>::Output: NonZero,
N(Ul) + N(Ur) = N(Ul + Ur)
type Output = NInt<<Ul as Add<Ur>>::Output>
The resulting type after applying the +
operator.
fn add(self, NInt<Ur>) -> <NInt<Ul> as Add<NInt<Ur>>>::Output
fn add(self, NInt<Ur>) -> <NInt<Ul> as Add<NInt<Ur>>>::Output
Performs the +
operation.
impl<Ul, Ur> Add<NInt<Ur>> for PInt<Ul> where
Ul: NonZero + Unsigned + Cmp<Ur> + PrivateIntegerAdd<<Ul as Cmp<Ur>>::Output, Ur>,
Ur: NonZero + Unsigned,
impl<Ul, Ur> Add<NInt<Ur>> for PInt<Ul> where
Ul: NonZero + Unsigned + Cmp<Ur> + PrivateIntegerAdd<<Ul as Cmp<Ur>>::Output, Ur>,
Ur: NonZero + Unsigned,
P(Ul) + N(Ur)
: We resolve this with our PrivateAdd
type Output = <Ul as PrivateIntegerAdd<<Ul as Cmp<Ur>>::Output, Ur>>::Output
The resulting type after applying the +
operator.
fn add(self, NInt<Ur>) -> <PInt<Ul> as Add<NInt<Ur>>>::Output
fn add(self, NInt<Ur>) -> <PInt<Ul> as Add<NInt<Ur>>>::Output
Performs the +
operation.
impl<Ul, Ur> Add<PInt<Ur>> for NInt<Ul> where
Ul: NonZero + Unsigned,
Ur: NonZero + Unsigned + Cmp<Ul> + PrivateIntegerAdd<<Ur as Cmp<Ul>>::Output, Ul>,
impl<Ul, Ur> Add<PInt<Ur>> for NInt<Ul> where
Ul: NonZero + Unsigned,
Ur: NonZero + Unsigned + Cmp<Ul> + PrivateIntegerAdd<<Ur as Cmp<Ul>>::Output, Ul>,
N(Ul) + P(Ur)
: We resolve this with our PrivateAdd
type Output = <Ur as PrivateIntegerAdd<<Ur as Cmp<Ul>>::Output, Ul>>::Output
The resulting type after applying the +
operator.
fn add(self, PInt<Ur>) -> <NInt<Ul> as Add<PInt<Ur>>>::Output
fn add(self, PInt<Ur>) -> <NInt<Ul> as Add<PInt<Ur>>>::Output
Performs the +
operation.
impl<U> Add<Z0> for NInt<U> where
U: NonZero + Unsigned,
impl<U> Add<Z0> for NInt<U> where
U: NonZero + Unsigned,
NInt + Z0 = NInt
type Output = NInt<U>
The resulting type after applying the +
operator.
fn add(self, Z0) -> <NInt<U> as Add<Z0>>::Output
fn add(self, Z0) -> <NInt<U> as Add<Z0>>::Output
Performs the +
operation.
impl<U> Neg for NInt<U> where
U: NonZero + Unsigned,
impl<U> Neg for NInt<U> where
U: NonZero + Unsigned,
-NInt = PInt