compio_buf

Trait 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.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§