
Rust: Shapes (enum, trait, pattern matching)
A realistic Rust snippet with an enum carrying data, a trait and impl, exhaustive match, iterators, and Option handling, for testing highlighters, rustc, clippy, and parsers against real ownership-era code.
- File
- RS · Rust
- Use case
- Syntax highlightingCode parsing+1






















