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

std ライブラリの型

std ライブラリは、primitives を大幅に拡張する多くの独自の型を提供します。例をいくつか示します:

  • 可変長の String: "hello world"
  • 可変長のベクター: [1, 2, 3]
  • オプション型: Option<i32>
  • エラー処理型: Result<i32, i32>
  • ヒープに割り当てられたポインター: Box<i32>

関連項目:

primitivesstd ライブラリ