Tag

#Pattern Matching

Every article tagged Pattern Matching, in one place.

  • 2 articles
  • 2 min of reading
  • 10 Aug, 2026 last updated

Showing 2 articles

Rust 1 min read

Structs, Enums and Pattern Matching in Rust

Rust's enums are far more powerful than enums in most languages: each variant can hold its own data. Combined with match , they let you model states so that invalid ones can't exist. Structs and impl #[derive(Debug, Clone)] struct User { id: u64, name: String,...

10 Aug, 2026 Author 754 61
Read article