学習パス

Rust の基礎

最初のプログラムから、変数、型、条件分岐、ループ、文字列、ベクター、関数まで。各トピックの後にチャレンジがあります。

レッスン 17 件 · チャレンジ 31 件

1 はじめの一歩 レッスン 5 件

  1. レッスン チャレンジ 2 件 Hello World and Program Structure Write your first Rust program and learn what fn main and println! do.
  2. レッスン チャレンジ 2 件 Variables and Mutability Declare variables with let, allow changes with mut, and use constants and shadowing.
  3. レッスン チャレンジ 2 件 Data Types Work with integers, floating-point numbers, booleans and characters, and convert between them.
  4. レッスン チャレンジ 2 件 Operators and Arithmetic Use arithmetic, comparison and logical operators, and see how integer division works.
  5. レッスン チャレンジ 2 件 Reading User Input Read a line from the keyboard and turn it into a number safely.

2 条件分岐 レッスン 2 件

  1. レッスン チャレンジ 2 件 Conditions with if and else Choose what runs with if, else if and else, and use if as an expression.
  2. レッスン チャレンジ 1 件 FizzBuzz Solve the classic FizzBuzz problem with match on a tuple.

3 ループ レッスン 2 件

  1. レッスン チャレンジ 2 件 Loops: for, while and loop Repeat code with for over a range, while with a condition, and loop with break.
  2. レッスン チャレンジ 2 件 Prime Numbers Check whether a number is prime and list the primes up to 30.

4 文字列 レッスン 2 件

  1. レッスン チャレンジ 2 件 Strings: String and &str Create, grow, search and split text with Rust's two string types.
  2. レッスン チャレンジ 1 件 Reverse a String Reverse the characters of a string and the words of a sentence.

5 コレクション レッスン 3 件

  1. レッスン チャレンジ 2 件 Tuples and Arrays Group values with tuples and store a fixed number of items in an array.
  2. レッスン チャレンジ 2 件 Vectors Store a growing list of values in a Vec and read items safely.
  3. レッスン チャレンジ 2 件 Fibonacci Sequence Generate Fibonacci numbers with a loop and a vector.

6 関数 レッスン 2 件

  1. レッスン チャレンジ 2 件 Functions and Return Values Define functions with typed parameters and return values.
  2. レッスン チャレンジ 2 件 Binary Search Find a value in a sorted slice by halving the search range.

7 オブジェクトとクラス レッスン 1 件

  1. レッスン チャレンジ 1 件 Structs Group related values into your own type with named fields.
次に進む: プログラミングの基礎