Trait core::slice::iter::SplitIter

source ·
pub(super) trait SplitIter: DoubleEndedIterator {
    // Required method
    fn finish(&mut self) -> Option<Self::Item>;
}
Expand description

An internal abstraction over the splitting iterators, so that splitn, splitn_mut etc can be implemented once.

Required Methods§

source

fn finish(&mut self) -> Option<Self::Item>

Marks the underlying iterator as complete, extracting the remaining portion of the slice.

Implementors§