標準ライブラリの型
stdライブラリは、基本データ型を劇的に拡張するカスタム型を数多く提供します。例えば以下です。
- 拡張可能な文字列である
String。例えば:"hello world" - growable vectors:
[1, 2, 3] - オプション型:
Option<i32> - エラーハンドリング用の
Result<i32, i32> - ヒープ上の資源へのポインタ:
Box<i32>
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