flâneur — a map of the web's best reading

The Slice Type - The Rust Programming Language

doc.rust-lang.org · 2,623 words · saved by 5 readers

Slices let you reference a contiguous sequence of elements in a collection rather than the whole collection. A slice is a kind of reference, so it does not have ownership.

The Slice Type - The Rust Programming Language Keyboard shortcuts Press ← or → to navigate between chapters Press S or / to search in the book Press ? to show this help Press Esc to hide this help Auto Light Rust Coal Navy Ayu The Rust Programming Language The Slice Type Slices let you reference a contiguous sequence of elements in a collection . A slice is a kind of reference, so it does not have ownership. Here’s a small programming problem: Write a function that takes a string of words separated by spaces and returns the first word it finds in that string. If the function doesn’t find a spa

Explore this link on the map →

saved by

related reading