Trait compio_buf::OwnedIterator

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

The inner implementation of a OwnedIter.

Required Methods§

source

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

Get the next iterator. Will return Err with the inner buffer if it reaches the end.

source

fn current(&self) -> &dyn IoBuf

Get the current buffer.

Object Safety§

This trait is not object safe.

Implementors§