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.
Glossary: Algorithms Beyond the Basics in Rust
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.