Skip to content

Glossary: Algorithms Beyond the Basics in Rust

usize

Rust's unsigned number type for indexes and lengths. It can't go below 0, so `len() - 1` on an empty slice or `t - minutes` can panic.

Where the book teaches it

Related terms

Slice