]>
Commit | Line | Data |
---|---|---|
2c00a5a8 XL |
1 | # Std library types |
2 | ||
3 | The `std` library provides many custom types which expands drastically on | |
4 | the `primitives`. Some of these include: | |
5 | ||
6 | * growable `String`s like: `"hello world"` | |
7 | * growable vectors: `[1, 2, 3]` | |
8 | * optional types: `Option<i32>` | |
9 | * error handling types: `Result<i32, i32>` | |
10 | * heap allocated pointers: `Box<i32>` | |
11 | ||
12 | ### See also: | |
13 | ||
14 | [primitives] and [the std library][std] | |
15 | ||
dc9dc135 | 16 | [primitives]: primitives.md |
2c00a5a8 | 17 | [std]: https://doc.rust-lang.org/std/ |