Skip to content

Instantly share code, notes, and snippets.

View aluqas's full-sized avatar
πŸŽ“

𝑆 𝘒 𝒒 𝘢 .ᐟ 𝘒 aluqas

πŸŽ“
View GitHub Profile
@aluqas
aluqas / keyoxide.md
Created July 22, 2024 11:20
keyoxide

aspe:keyoxide.org:Y5JXA5YJWEJX6RQGBFQGNUWXBQ

//! 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?