Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

カスタム型

Rust のカスタムデータ型は、主に次の 2 つのキーワードによって定義されます。

  • struct: 構造体を定義する
  • enum: 列挙型を定義する

定数は conststatic キーワードによって作成することもできます。