Rust syntax

The syntax of Rust is the set of rules defining how a Rust program is written and compiled. Rust's syntax is similar to that of C and C++, although many of its features were influenced by functional programming languages such as OCaml.
Wikipedia contributors, "Rust syntax", Wikipedia, revision 1384859432, retrieved 20 November 2026, source, CC BY-SA 4.0.