Algebraic

Rust

Rust Enums: Algebraic Data Types

Algebraic data types (ADTs) come from type theory and functional programming, but Rust brings them to systems programming with zero runtime overhead. Unlike C-style enums that are glorified integers,…

Read more →