Introduction - Rust by Example
Introduction - Rust by Example
Rust by Example
Rust is a modern systems programming language focusing on safety, speed, and
concurrency. It accomplishes these goals by being memory safe without using garbage
collection.
Rust by Example (RBE) is a collection of runnable examples that illustrate various Rust
concepts and standard libraries. To get even more out of these examples, don't forget to
install Rust locally and check out the official docs. Additionally for the curious, you can also
check out the source code for this site.
Primitives - Learn about signed integers, unsigned integers and other primitives.
Conversion
Expressions
Cargo - Go through some basic features of the official Rust package management tool.
Generics - Learn about writing a function or data type which can work for multiple
types of arguments.
Scoping rules - Scopes play an important part in ownership, borrowing, and lifetimes.
Macros
Std library types - Learn about some custom types provided by std library.
Unsafe Operations
Compatibility
https://doc.rust-lang.org/rust-by-example/ 2/2