Rust code snippets: syntax, control, data

rust
296
0
Prompt
Write code snippets in Rust that demonstrate basic syntax, control structures, and data types.