pub trait PrivateIntegerAdd<C, N> {
type Output;
// Required method
fn private_integer_add(self, _: C, _: N) -> Self::Output;
}Expand description
Used for addition of signed integers; C = P.cmp(N)
Assumes P = Self is positive and N is negative
where P and N are both passed as unsigned integers
Required Associated Types§
Required Methods§
fn private_integer_add(self, _: C, _: N) -> Self::Output
Implementors§
Source§impl<N, P: Unsigned> PrivateIntegerAdd<Less, N> for P
P + N = Negative where P < N
impl<N, P: Unsigned> PrivateIntegerAdd<Less, N> for P
P + N = Negative where P < N
Source§impl<N: Unsigned, P> PrivateIntegerAdd<Greater, N> for P
P + N = Positive where P > N
impl<N: Unsigned, P> PrivateIntegerAdd<Greater, N> for P
P + N = Positive where P > N