1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
//! # reflect-nat
//!
//! Type-level naturals, booleans, and heterogeneous lists with [`Reflect`](reify_reflect_core::Reflect)
//! implementations.
//!
//! ## Type-Level Naturals
//!
//! Natural numbers are represented using Peano encoding:
//! - [`Z`] represents zero
//! - [`S<N>`] represents the successor of `N`
//!
//! ## Type-Level Booleans
//!
//! - [`True`] and [`False`] with boolean operations [`Not`], [`And`], [`Or`]
//!
//! ## Heterogeneous Lists
//!
//! - [`HNil`] and [`HCons<H, T>`] with [`Reflect`](reify_reflect_core::Reflect) implementations
//!
//! # Examples
//!
//! ```
//! use reflect_nat::{Z, S, True, False, HNil, HCons};
//! use reify_reflect_core::{Reflect, RuntimeValue};
//!
//! // Type-level natural: 3
//! type Three = S<S<S<Z>>>;
//! assert_eq!(Three::reflect(), RuntimeValue::Nat(3));
//!
//! // Type-level boolean
//! assert_eq!(True::reflect(), true);
//!
//! // Type-level HList: [3, 0]
//! type MyList = HCons<Three, HCons<Z, HNil>>;
//! assert_eq!(
//! MyList::reflect(),
//! vec![RuntimeValue::Nat(3), RuntimeValue::Nat(0)]
//! );
//! ```
pub use *;
pub use *;
pub use *;