thomas-shirley.com

What are slices in Rust?

When you have a set of data. Whether it's a String or an Array, you can return a portion of that String or the Array using a Slice.

The returned portion of the data is always a reference, without taking ownership of the original data.

26-08-2021