Trait compio_buf::OwnedIterator

source ·
pub trait OwnedIterator: IntoInner + Sized {
    // Required method
    fn next(self) -> Result<Self, Self::Inner>;
}
Expand description

The inner implementation of a [OwnedIter].

Required Methods§

source

fn next(self) -> Result<Self, Self::Inner>

Get the next iterator.

If current Self is the last one, return Err(Self::Inner) to give the inner back.

Object Safety§

This trait is not object safe.

Implementors§