Type Definition typenum::consts::N1

source ·
pub type N1 = NInt<U1>;

Trait Implementations§

source§

impl<U: Unsigned> Pow<NInt<UInt<U, B0>>> for N1

(-1)^N = 1 if N is even

§

type Output = PInt<UInt<UTerm, B1>>

The result of the exponentiation.
source§

fn powi(self, _: NInt<UInt<U, B0>>) -> Self::Output

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

impl<U: Unsigned> Pow<NInt<UInt<U, B1>>> for N1

(-1)^N = -1 if N is odd

§

type Output = NInt<UInt<UTerm, B1>>

The result of the exponentiation.
source§

fn powi(self, _: NInt<UInt<U, B1>>) -> Self::Output

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