typenum

Type Alias N1

Source
pub type N1 = NInt<U1>;

Aliased Type§

struct N1 { /* private fields */ }

Trait Implementations§

Source§

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

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

Source§

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

Source§

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