Exploring language rust through official documents and "rust by example" book.
File name | Concept |
---|---|
hello_world.rs | The hello world of Rust! |
printing.rs | The hows/ways of formatted printing in Rust |
fmt_debug.rs | Example of fmt::Debug trait. |
fmt_display.rs | Example of fmt::Display trait. |
formatter.rs | Example of formatting in Rust. |
literals.rs | Simple demonstrations of literals in Rust. |
tuples.rs | Example of a Tuple in Rust. |
array_slices.rs | Array and slices in Rust. |
structs.rs | Structs in Rust. |
enums.rs | Enums in Rust. |
use_of_use.rs | Short-circuiting manual scoping using use. |
linked_list.rs | A simple Linked-list in Rust. |
constants.rs | A simple example demonstrating constants in Rust. |
the_matrix.rs | A simple example of variable binding in Rust using 'the matrix' movie references. |
Snufflifors_Spell.rs | Understanding mutability in Rust using Harry Potter spell. |
scope_and_shadowing.rs | Scope and shadowing of variable bindings in Rust. |
initialize_later.rs | Late initialization of variable bindings in Rust. |
casting.rs | Examples of casting in Rust. |
literal_annotation.rs | Numeric literals type annotation in Rust. |
type_inference.rs | Type inference in Rust. |
alias.rs | alias in Rust. |
expression.rs | block expressions and simple expressions in Rust. |
if_else.rs | if else flow control example in Rust. |
Option.rs | Option enum in Rust, to avoid null dereferencing. |