Type Alias typenum::consts::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

Layout§

Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.

Size: 0 bytes