aspe:keyoxide.org:Y5JXA5YJWEJX6RQGBFQGNUWXBQ
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //! A self-contained type-level programming example in Rust. | |
| //! | |
| //! This file demonstrates: | |
| //! - type-level booleans and branching | |
| //! - Peano naturals and arithmetic | |
| //! - a type-level HList-style array | |
| //! - a `While` encoded with trait resolution | |
| //! - Fibonacci sequence generation at compile time | |
| //! | |
| //! ## Why no const generics? |