Rust Reference
I read about loops in Rust and was surprised by the keyword loop
.
I was surprised to find that loop
creates an infinite loop.
You don’t see that word in other languages.
I couldn’t find a quick reference.
That reminded me of C++, so I looked at the ISO standard.
I liked how it organises information.
My main goal was to see all the types of loops in Rust:
- Loop expressions in the Rust Reference
- Expressions in the formal language specification
- Flow control examples in Rust by Example
Overall the main links for all the above mentioned are:
Title: Rust Reference
Author: Jamie Cropley
Date published: 19/05/2025
URL: https://www.rust.foo/blog/rustreference/
Accessed on: 02/06/2025
Website: Rust Foo