pub type P1 = PInt<U1>;
Aliased Type§
struct P1 { /* private fields */ }
Implementations
Trait Implementations§
impl<U: Unsigned + NonZero> StructuralPartialEq for PInt<U>
source§impl<Ul, Ur: Unsigned + NonZero> Add<NInt<Ur>> for PInt<Ul>
impl<Ul, Ur: Unsigned + NonZero> Add<NInt<Ur>> for PInt<Ul>
P(Ul) + N(Ur)
: We resolve this with our PrivateAdd
impl<U: Unsigned + NonZero + PowerOfTwo> PowerOfTwo for PInt<U>
source§impl<U: Ord + Unsigned + NonZero> Ord for PInt<U>
impl<U: Ord + Unsigned + NonZero> Ord for PInt<U>
impl<U: Unsigned + NonZero> NonZero for PInt<U>
impl<U: Eq + Unsigned + NonZero> Eq for PInt<U>
impl<U: Copy + Unsigned + NonZero> Copy for PInt<U>
source§impl<U: PartialOrd + Unsigned + NonZero> PartialOrd for PInt<U>
impl<U: PartialOrd + Unsigned + NonZero> PartialOrd for PInt<U>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl<U: Unsigned + NonZero> StructuralEq for PInt<U>
source§impl<Pl: Cmp<Pr> + Unsigned + NonZero, Pr: Unsigned + NonZero> Cmp<PInt<Pr>> for PInt<Pl>
impl<Pl: Cmp<Pr> + Unsigned + NonZero, Pr: Unsigned + NonZero> Cmp<PInt<Pr>> for PInt<Pl>
X <==> Y
source§impl<Ul, Ur: Unsigned + NonZero> Sub<PInt<Ur>> for PInt<Ul>
impl<Ul, Ur: Unsigned + NonZero> Sub<PInt<Ur>> for PInt<Ul>
P(Ul) - P(Ur)
: We resolve this with our PrivateAdd