Skip to content
Browse the library
rust-lang / rust-by-example

Rust By Example

Learn Rust with annotated, runnable examples

Who it is for

Learners who prefer annotated, runnable Rust examples.

What you can do with it

Explore language features through examples and adapt them to test your understanding.

Before you start

Example-driven material is best used with deliberate experimentation. Check the current source for setup and expected Rust versions.

Source and context

These selection notes describe the resource's scope. Check the source for current details.

Selection notes updated . How selection notes are reviewed.

Choose your next step

Keep exploring

Explore the category →