Skip to content

Glossary: Rust in Practice

slice

Also written: &[u32], slices

A borrowed view of a run of values, such as all or part of a `Vec<u32>`. A `&Vec<u32>` converts to one automatically.

Where the book teaches it