Struct

core::slice::SliceIter!

source
forall T, 'k, C, R.
exposed struct SliceIter! {
    tag: Exclusive!['k],
    rest: R,
    slice: Slice[T, 'k],
    index: usize,
}

A slice's elements in order, read under the capability a context lends (Access). iter opens the context and the iterator holds what it opened while it runs; finish closes it and hands the context back: var it = bytes.iter(cx); for b in &it { .. } let cx = it.finish();.

Methods

method finishsource

fn finish(self) -> C { ... }

Ends the iteration, handing back the context.

Instances

instance Iterator[SliceIter![T, 'k, C, R] -> T]source

forall T, 'k, C, R where Copy[T], Sized[T].
instance Iterator[SliceIter![T, 'k, C, R] -> T] { ... }

In core::slice.

The slice's elements in order, read under the capability the iterator holds.