Skip to main content

N

Macro N 

Source
N!() { /* proc-macro */ }
Expand description

Creates a typed version of the given natural number.

Useful for creating natural numbers beyond the hard-coded type aliases.

ยงExample

use type_proof::{
    peano::{N, N3},
    type_utils::assert_type_eq,
};

assert_type_eq::<N!(3), N3>();