]> git.proxmox.com Git - rustc.git/blame - src/doc/rust-by-example/src/std.md
New upstream version 1.62.1+dfsg1
[rustc.git] / src / doc / rust-by-example / src / std.md
CommitLineData
2c00a5a8
XL
1# Std library types
2
3The `std` library provides many custom types which expands drastically on
4the `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/