Hello World and Program Structure
Write your first Rust program and learn what fn main and println! do.
Voir la leçon →Apprenez la syntaxe de Rust pas à pas : variables, types, chaînes, conditions, boucles, fonctions, tableaux, vecteurs et saisie.
Essayer Rust en ligneWrite your first Rust program and learn what fn main and println! do.
Voir la leçon →Declare variables with let, allow changes with mut, and use constants and shadowing.
Voir la leçon →Work with integers, floating-point numbers, booleans and characters, and convert between them.
Voir la leçon →Use arithmetic, comparison and logical operators, and see how integer division works.
Voir la leçon →Create, grow, search and split text with Rust's two string types.
Voir la leçon →Choose what runs with if, else if and else, and use if as an expression.
Voir la leçon →Repeat code with for over a range, while with a condition, and loop with break.
Voir la leçon →Define functions with typed parameters and return values.
Voir la leçon →Group values with tuples and store a fixed number of items in an array.
Voir la leçon →