Rust: Slice Types

Опубликовано: 02 Июнь 2026
на канале: The Dev Method
8,694
264

Slices let you reference a contiguous sequence of elements in a collection rather than the whole collection. For example, it’s like a subset of items from all the items in an array. Maybe it’s the first 3 of 5 items. Or maybe the last 2 of 10 items. Slices don’t have ownership.

Music by Brad Kemp
https://secondbedroomstudio.com