Struct vonuvoli_scheme::externals::blake2::digest::generic_array::typenum::int::PInt[]

pub struct PInt<U> where
    U: NonZero + Unsigned
{ /* fields omitted */ }

Type-level signed integers with positive sign.

Methods

impl<U> PInt<U> where
    U: NonZero + Unsigned

Instantiates a singleton representing this strictly positive integer.

Trait Implementations

impl<U> NonZero for PInt<U> where
    U: NonZero + Unsigned

impl<U> Pow<PInt<U>> for i64 where
    U: NonZero + Unsigned

The result of the exponentiation.

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 PInt<U> where
    U: NonZero + Unsigned

P^0 = 1

The result of the exponentiation.

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

N(Ul)^P(Ur) = P(Ul^Ur) if Ur is even

The result of the exponentiation.

This function isn't used in this crate, but may be useful for others. It is implemented for primitives. Read more

impl<U> Pow<PInt<U>> for u64 where
    U: NonZero + Unsigned

The result of the exponentiation.

This function isn't used in this crate, but may be useful for others. It is implemented for primitives. Read more

impl<U> Pow<PInt<U>> for i16 where
    U: NonZero + Unsigned

The result of the exponentiation.

This function isn't used in this crate, but may be useful for others. It is implemented for primitives. Read more

impl<U> Pow<PInt<U>> for usize where
    U: NonZero + Unsigned

The result of the exponentiation.

This function isn't used in this crate, but may be useful for others. It is implemented for primitives. Read more

impl<U> Pow<PInt<U>> for u32 where
    U: NonZero + Unsigned

The result of the exponentiation.

This function isn't used in this crate, but may be useful for others. It is implemented for primitives. Read more

impl<U> Pow<PInt<U>> for u16 where
    U: NonZero + Unsigned

The result of the exponentiation.

This function isn't used in this crate, but may be useful for others. It is implemented for primitives. Read more

impl<U> Pow<PInt<U>> for f64 where
    U: NonZero + Unsigned

The result of the exponentiation.

This function isn't used in this crate, but may be useful for others. It is implemented for primitives. Read more

impl<U> Pow<PInt<U>> for isize where
    U: NonZero + Unsigned

The result of the exponentiation.

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 PInt<UInt<UTerm, B1>> where
    U: NonZero + Unsigned

1^N = 1

The result of the exponentiation.

This function isn't used in this crate, but may be useful for others. It is implemented for primitives. Read more

impl<U> Pow<PInt<U>> for i32 where
    U: NonZero + Unsigned

The result of the exponentiation.

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<Ur>> for PInt<Ul> where
    Ul: NonZero + Unsigned + Pow<Ur>,
    Ur: NonZero + Unsigned,
    <Ul as Pow<Ur>>::Output: Unsigned,
    <Ul as Pow<Ur>>::Output: NonZero

P(Ul)^P(Ur) = P(Ul^Ur)

The result of the exponentiation.

This function isn't used in this crate, but may be useful for others. It is implemented for primitives. Read more

impl<U> Pow<PInt<U>> for Z0 where
    U: NonZero + Unsigned

0^P = 0

The result of the exponentiation.

This function isn't used in this crate, but may be useful for others. It is implemented for primitives. Read more

impl<U> Pow<PInt<U>> for f32 where
    U: NonZero + Unsigned

The result of the exponentiation.

This function isn't used in this crate, but may be useful for others. It is implemented for primitives. Read more

impl<U> Pow<PInt<U>> for i8 where
    U: NonZero + Unsigned

The result of the exponentiation.

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

N(Ul)^P(Ur) = N(Ul^Ur) if Ur is odd

The result of the exponentiation.

This function isn't used in this crate, but may be useful for others. It is implemented for primitives. Read more

impl<U> Pow<PInt<U>> for u8 where
    U: NonZero + Unsigned

The result of the exponentiation.

This function isn't used in this crate, but may be useful for others. It is implemented for primitives. Read more

impl<U> Hash for PInt<U> where
    U: NonZero + Unsigned + Hash

Feeds this value into the given [Hasher]. Read more

Feeds a slice of this type into the given [Hasher]. Read more

impl<U> PartialOrd<PInt<U>> for PInt<U> where
    U: NonZero + Unsigned + PartialOrd<U>, 

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

This method tests less than (for self and other) and is used by the < operator. Read more

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

This method tests greater than (for self and other) and is used by the > operator. Read more

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

$A<Ul> / $B<Ur> = $R<Ul / Ur>

The resulting type after applying the / operator.

Performs the / operation.

impl<Ul, Ur> Div<PInt<Ur>> for PInt<Ul> where
    Ul: NonZero + Unsigned + Cmp<Ur>,
    Ur: NonZero + Unsigned,
    PInt<Ul>: PrivateDivInt<<Ul as Cmp<Ur>>::Output, PInt<Ur>>, 

$A<Ul> / $B<Ur> = $R<Ul / Ur>

The resulting type after applying the / operator.

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

$A<Ul> / $B<Ur> = $R<Ul / Ur>

The resulting type after applying the / operator.

Performs the / operation.

impl<U> Default for PInt<U> where
    U: NonZero + Unsigned + Default

Returns the "default value" for a type. Read more

impl<Ul, Ur> Rem<PInt<Ur>> for PInt<Ul> where
    Ul: NonZero + Unsigned + Rem<Ur>,
    Ur: NonZero + Unsigned,
    PInt<Ul>: PrivateRem<<Ul as Rem<Ur>>::Output, PInt<Ur>>, 

$A<Ul> % $B<Ur> = $R<Ul % Ur>

The resulting type after applying the % operator.

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

$A<Ul> % $B<Ur> = $R<Ul % Ur>

The resulting type after applying the % operator.

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

$A<Ul> % $B<Ur> = $R<Ul % Ur>

The resulting type after applying the % operator.

Performs the % operation.

impl<U> Max<PInt<U>> for Z0 where
    U: Unsigned + NonZero

The type of the maximum of Self and Rhs

Method returning the maximum

impl<Ul, Ur> Max<PInt<Ur>> for PInt<Ul> where
    Ul: Unsigned + NonZero + Max<Ur>,
    Ur: Unsigned + NonZero,
    <Ul as Max<Ur>>::Output: Unsigned,
    <Ul as Max<Ur>>::Output: NonZero

The type of the maximum of Self and Rhs

Method returning the maximum

impl<Ul, Ur> Max<NInt<Ur>> for PInt<Ul> where
    Ul: Unsigned + NonZero,
    Ur: Unsigned + NonZero

The type of the maximum of Self and Rhs

Method returning the maximum

impl<Ul, Ur> Max<PInt<Ur>> for NInt<Ul> where
    Ul: Unsigned + NonZero,
    Ur: Unsigned + NonZero

The type of the maximum of Self and Rhs

Method returning the maximum

impl<U> Max<Z0> for PInt<U> where
    U: Unsigned + NonZero

The type of the maximum of Self and Rhs

Method returning the maximum

impl<Ul, Ur> Min<PInt<Ur>> for NInt<Ul> where
    Ul: Unsigned + NonZero,
    Ur: Unsigned + NonZero

The type of the minimum of Self and Rhs

Method returning the minimum

impl<Ul, Ur> Min<PInt<Ur>> for PInt<Ul> where
    Ul: Unsigned + NonZero + Min<Ur>,
    Ur: Unsigned + NonZero,
    <Ul as Min<Ur>>::Output: Unsigned,
    <Ul as Min<Ur>>::Output: NonZero

The type of the minimum of Self and Rhs

Method returning the minimum

impl<U> Min<PInt<U>> for Z0 where
    U: Unsigned + NonZero

The type of the minimum of Self and Rhs

Method returning the minimum

impl<Ul, Ur> Min<NInt<Ur>> for PInt<Ul> where
    Ul: Unsigned + NonZero,
    Ur: Unsigned + NonZero

The type of the minimum of Self and Rhs

Method returning the minimum

impl<U> Min<Z0> for PInt<U> where
    U: Unsigned + NonZero

The type of the minimum of Self and Rhs

Method returning the minimum

impl<U> Abs for PInt<U> where
    U: NonZero + Unsigned

The absolute value.

impl<U> Ord for PInt<U> where
    U: NonZero + Unsigned + Ord

This method returns an Ordering between self and other. Read more

Compares and returns the maximum of two values. Read more

Compares and returns the minimum of two values. Read more

impl<U> Mul<ATerm> for PInt<U> where
    U: Unsigned + NonZero

The resulting type after applying the * operator.

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

N(Ul) * P(Ur) = N(Ul * Ur)

The resulting type after applying the * operator.

Performs the * operation.

impl<V, A, U> Mul<TArr<V, A>> for PInt<U> where
    U: Unsigned + NonZero,
    PInt<U>: Mul<A>,
    PInt<U>: Mul<V>, 

The resulting type after applying the * operator.

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

P(Ul) * N(Ur) = N(Ul * Ur)

The resulting type after applying the * operator.

Performs the * operation.

impl<U> Mul<Z0> for PInt<U> where
    U: NonZero + Unsigned

P * Z0 = Z0

The resulting type after applying the * operator.

Performs the * operation.

impl<Ul, Ur> Mul<PInt<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) * P(Ur) = P(Ul * Ur)

The resulting type after applying the * operator.

Performs the * operation.

impl<U> Debug for PInt<U> where
    U: NonZero + Unsigned + Debug

Formats the value using the given formatter. Read more

impl<U> PowerOfTwo for PInt<U> where
    U: NonZero + Unsigned + PowerOfTwo

impl<U> Clone for PInt<U> where
    U: NonZero + Unsigned + Clone

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<U> Sub<Z0> for PInt<U> where
    U: NonZero + Unsigned

PInt - Z0 = PInt

The resulting type after applying the - operator.

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

N(Ul) - P(Ur) = N(Ul + Ur)

The resulting type after applying the - operator.

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

P(Ul) - N(Ur) = P(Ul + Ur)

The resulting type after applying the - operator.

Performs the - operation.

impl<Ul, Ur> Sub<PInt<Ur>> for PInt<Ul> where
    Ul: NonZero + Unsigned + Cmp<Ur> + PrivateIntegerAdd<<Ul as Cmp<Ur>>::Output, Ur>,
    Ur: NonZero + Unsigned

P(Ul) - P(Ur): We resolve this with our PrivateAdd

The resulting type after applying the - operator.

Performs the - operation.

impl<U> Sub<PInt<U>> for Z0 where
    U: NonZero + Unsigned

Z0 - P = N

The resulting type after applying the - operator.

Performs the - operation.

impl<U> Integer for PInt<U> where
    U: NonZero + Unsigned

I8: i8 = <U>::I8

I16: i16 = <U>::I16

I32: i32 = <U>::I32

I64: i64 = <U>::I64

ISIZE: isize = <U>::ISIZE

impl<P, N> Cmp<PInt<P>> for NInt<N> where
    N: NonZero + Unsigned,
    P: NonZero + Unsigned

-X < Y

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

X > - Y

The result of the comparison. It should only ever be one of Greater, Less, or Equal.

impl<U> Cmp<Z0> for PInt<U> where
    U: NonZero + Unsigned

X > 0

The result of the comparison. It should only ever be one of Greater, Less, or Equal.

impl<Pl, Pr> Cmp<PInt<Pr>> for PInt<Pl> where
    Pl: NonZero + Unsigned + Cmp<Pr>,
    Pr: NonZero + Unsigned

X <==> Y

The result of the comparison. It should only ever be one of Greater, Less, or Equal.

impl<U> Cmp<PInt<U>> for Z0 where
    U: NonZero + Unsigned

0 < X

The result of the comparison. It should only ever be one of Greater, Less, or Equal.

impl<U> PartialEq<PInt<U>> for PInt<U> where
    U: NonZero + Unsigned + PartialEq<U>, 

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl<U> Eq for PInt<U> where
    U: NonZero + Unsigned + Eq

impl<U> Copy for PInt<U> where
    U: NonZero + Unsigned + Copy

impl<Ul, Ur> Add<PInt<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) + P(Ur) = P(Ul + Ur)

The resulting type after applying the + operator.

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

P(Ul) + N(Ur): We resolve this with our PrivateAdd

The resulting type after applying the + operator.

Performs the + operation.

impl<U> Add<Z0> for PInt<U> where
    U: NonZero + Unsigned

PInt + Z0 = PInt

The resulting type after applying the + operator.

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

N(Ul) + P(Ur): We resolve this with our PrivateAdd

The resulting type after applying the + operator.

Performs the + operation.

impl<U> Neg for PInt<U> where
    U: NonZero + Unsigned

-PInt = NInt

The resulting type after applying the - operator.

Performs the unary - operation.

Auto Trait Implementations

impl<U> Send for PInt<U> where
    U: Send

impl<U> Sync for PInt<U> where
    U: Sync