Skip to content

Glossary: Algorithms Beyond the Basics in Rust

Slice

Also written: &[i32], &mut [i32], slices

A borrowed view of part or all of a vector or array, such as `&[i32]`, so one function accepts both. `&mut [i32]` is a slice the function may change.

Where the book teaches it

Related terms

Two pointersSliding window