Re-exported from alloc::collections::vec::VecIter!.
forall T, 'k.
exposed struct VecIter! {
vec: Vec![T, 'k],
tag: Exclusive!['k],
index: usize,
}
A vector's elements in order, read under its capability, which the iterator holds with the vector while it runs; finish hands both back.
Methods
method finishsource
fn finish(self) -> (Exclusive!['k], Vec![T, 'k]) { ... }
Ends the iteration, handing back the capability and the vec.
Instances
instance Iterator[VecIter![T, 'k] -> T]source
forall T, 'k where Copy[T], Sized[T].
instance Iterator[VecIter![T, 'k] -> T] { ... }
The vec's elements in order, copied out under its capability.