Trait r3_core::utils::for_times::Nat

source ·
pub trait Nat {
    type Succ: Nat;

    const N: usize;
}
Expand description

Natural number. Use U to get a type implementing this.

Required Associated Types§

Required Associated Constants§

source

const N: usize

Implementors§

source§

impl Nat for U0

§

type Succ = UInt<U0, B1>

source§

const N: usize = 0usize

source§

impl<U: Nat> Nat for UInt<U, B0>

§

type Succ = UInt<U, B1>

source§

const N: usize = _

source§

impl<U: Nat> Nat for UInt<U, B1>

§

type Succ = UInt<<U as Nat>::Succ, B0>

source§

const N: usize = _

source§

impl<U: Nat, B> Nat for UInt<U, B>

§

type Succ = U0

source§

const N: usize = 0usize