RUST · STD · ANNOTATED

The Rust standard library, explained — with code that compiles.

Every public struct, trait, enum, function and macro from std, indexed and explained — with hand-written usage examples, performance notes, and module-level guides for the bits you reach for every day.

2,028 reference pages 30 module guides 10 tutorials 9 articles

Most-used std items All items →

Browse by module Module guides →

std::collections

HashMap, BTreeMap, Vec, VecDeque — every general-purpose container in std.

95 items
std::iter

The Iterator trait, adapters, and consumers — Rust's lazy zero-cost pipelines.

60 items
std::io

Read, Write, BufReader, BufWriter — synchronous byte-stream plumbing.

46 items
std::fs

Files, directories, metadata, atomic-write helpers and path traversal.

33 items
std::sync

Mutex, RwLock, Arc, atomics, channels — all the cross-thread primitives.

98 items
std::thread

Native OS threads, scoped joins, thread-local storage, and parking.

23 items
std::option

Option<T> — Rust's null-free representation of "value may be absent".

5 items
std::result

Result<T, E> — fallible operations as values, with the ? operator.

4 items
std::str

UTF-8 string slices: searching, splitting, parsing, iteration.

46 items
std::vec

The growable contiguous heap-allocated array — Rust's default sequence.

6 items
std::fmt

Display, Debug, Formatter — the traits behind every format string.

28 items
std::env

Process environment: args, vars, current_dir, and the env! macro.

30 items
std::process

Spawning subprocesses, capturing output, and managing exit status.

16 items
std::net

TcpStream, TcpListener, UdpSocket — synchronous network I/O.

16 items
std::time

Instant, Duration, SystemTime — measuring and waiting.

6 items

Recently added tutorials