3 ms·
> But, Rust has a notation for slices -- &[T] &[T] is an “array-slice”, even if it's called just “slice”. See this example ([..] is the syntax to create a sli
by littlestymaar 6y ago
> But, Rust has a notation for slices -- &[T]
&[T] is an “array-slice”, even if it's called just “slice”.
See this example ([..] is the syntax to create a slice of something): https://play.rust-lang.org/?version=stable&mode=debug&edition=2018&gist=1fe3556fb5dea35603eb7d26bd7d5863 https://play.rust-lang.org/?version=stable&mode=debug&editio...