Struct typenum::int::PInt
[−]
[src]
pub struct PInt<U: Unsigned + NonZero> { // some fields omitted }
Positive integers
Trait Implementations
impl<U: Unsigned + NonZero> NonZero for PInt<U>
[src]
impl<U: Unsigned + NonZero> Integer for PInt<U>
[src]
impl<U: Unsigned + NonZero> Same<PInt<U>> for PInt<U>
[src]
impl<U: Unsigned + NonZero> Neg for PInt<U>
[src]
-PInt = NInt
type Output = NInt<U>
The resulting type after applying the -
operator
fn neg(self) -> Self::Output
The method for the unary -
operator
impl<U: Unsigned + NonZero> Add<Z0> for PInt<U>
[src]
PInt + Z0 = PInt
type Output = PInt<U>
The resulting type after applying the +
operator
fn add(self, _: Z0) -> Self::Output
The method for the +
operator
impl<Ul: Unsigned + NonZero, Ur: Unsigned + NonZero> Add<PInt<Ur>> for PInt<Ul> where Ul: Add<Ur>, Ul::Output: Unsigned + NonZero
[src]
P(Ul) + P(Ur) = P(Ul + Ur)
type Output = PInt<Ul::Output>
The resulting type after applying the +
operator
fn add(self, _: PInt<Ur>) -> Self::Output
The method for the +
operator
impl<Ul: Unsigned + NonZero, Ur: Unsigned + NonZero> Add<NInt<Ur>> for PInt<Ul> where Ul: Cmp<Ur> + PrivateIntegerAdd<Ul::Output, Ur>
[src]
P(Ul) + N(Ur)
: We resolve this with our PrivateAdd
type Output = Ul::Output
The resulting type after applying the +
operator
fn add(self, _: NInt<Ur>) -> Self::Output
The method for the +
operator
impl<U: Unsigned + NonZero> Sub<Z0> for PInt<U>
[src]
PInt - Z0 = PInt
type Output = PInt<U>
The resulting type after applying the -
operator
fn sub(self, _: Z0) -> Self::Output
The method for the -
operator
impl<Ul: Unsigned + NonZero, Ur: Unsigned + NonZero> Sub<NInt<Ur>> for PInt<Ul> where Ul: Add<Ur>, Ul::Output: Unsigned + NonZero
[src]
P(Ul) - N(Ur) = P(Ul + Ur)
type Output = PInt<Ul::Output>
The resulting type after applying the -
operator
fn sub(self, _: NInt<Ur>) -> Self::Output
The method for the -
operator
impl<Ul: Unsigned + NonZero, Ur: Unsigned + NonZero> Sub<PInt<Ur>> for PInt<Ul> where Ul: Cmp<Ur> + PrivateIntegerAdd<Ul::Output, Ur>
[src]
P(Ul) - P(Ur)
: We resolve this with our PrivateAdd
type Output = Ul::Output
The resulting type after applying the -
operator
fn sub(self, _: PInt<Ur>) -> Self::Output
The method for the -
operator
impl<U: Unsigned + NonZero> Mul<Z0> for PInt<U>
[src]
P * Z0 = Z0
type Output = Z0
The resulting type after applying the *
operator
fn mul(self, _: Z0) -> Self::Output
The method for the *
operator
impl<Ul: Unsigned + NonZero, Ur: Unsigned + NonZero> Mul<PInt<Ur>> for PInt<Ul> where Ul: Mul<Ur>, Ul::Output: Unsigned + NonZero
[src]
P(Ul) * P(Ur) = P(Ul * Ur)
type Output = PInt<Ul::Output>
The resulting type after applying the *
operator
fn mul(self, _: PInt<Ur>) -> Self::Output
The method for the *
operator
impl<Ul: Unsigned + NonZero, Ur: Unsigned + NonZero> Mul<NInt<Ur>> for PInt<Ul> where Ul: Mul<Ur>, Ul::Output: Unsigned + NonZero
[src]
P(Ul) * N(Ur) = N(Ul * Ur)
type Output = NInt<Ul::Output>
The resulting type after applying the *
operator
fn mul(self, _: NInt<Ur>) -> Self::Output
The method for the *
operator
impl<Ul: Unsigned + NonZero, Ur: Unsigned + NonZero> Div<PInt<Ur>> for PInt<Ul> where Ul: Div<Ur>, Ul::Output: Unsigned + NonZero
[src]
P(Ul) / P(Ur) = P(Ul / Ur)
type Output = PInt<Ul::Output>
The resulting type after applying the /
operator
fn div(self, _: PInt<Ur>) -> Self::Output
The method for the /
operator
impl<Ul: Unsigned + NonZero, Ur: Unsigned + NonZero> Div<NInt<Ur>> for PInt<Ul> where Ul: Div<Ur>, Ul::Output: Unsigned + NonZero
[src]
P(Ul) / N(Ur) = N(Ul / Ur)