pub trait IntoNonEmptyIterator {
type Item;
type IntoIter: NonEmptyIterator<Item = Self::Item>;
// Required method
fn into_nonempty_iter(self) -> Self::IntoIter;
}
Expand description
Conversion into a NonEmptyIterator
.
Required Associated Types§
sourcetype IntoIter: NonEmptyIterator<Item = Self::Item>
type IntoIter: NonEmptyIterator<Item = Self::Item>
Which kind of NonEmptyIterator
are we turning this into?
Required Methods§
sourcefn into_nonempty_iter(self) -> Self::IntoIter
fn into_nonempty_iter(self) -> Self::IntoIter
Creates a NonEmptyIterator
from a value.