Glossary: Rust Beyond the Basics
slice
Also written: &[T], slices
A borrowed view of part or all of a list, written `&[T]`. A `&Vec<T>` can always be passed where a slice is expected.
Glossary: Rust Beyond the Basics
Also written: &[T], slices
A borrowed view of part or all of a list, written `&[T]`. A `&Vec<T>` can always be passed where a slice is expected.