r[lex.whitespace]

Whitespace

r[lex.whitespace.intro] Whitespace is any non-empty string containing only characters that have the Pattern_White_Space Unicode property, namely:

r[lex.whitespace.token-sep] Rust is a "free-form" language, meaning that all forms of whitespace serve only to separate tokens in the grammar, and have no semantic significance.

r[lex.whitespace.replacement] A Rust program has identical meaning if each whitespace element is replaced with any other legal whitespace element, such as a single space character.