Lyricdev
GitHub

interface AsSlice

pub interface AsSlice<T>

Gives a view of the elements, which makes x[a..b] the range of that view.

list[a..b] is list.asSlice()[a..b], a Slice<T> over the elements, no copy. An array's, a view's and a string's range are built in.

Methods

fn asSlice(): Slice<T>