IntoNonEmptyIterator

Trait IntoNonEmptyIterator 

Source
pub trait IntoNonEmptyIterator: IntoIterator {
    type IntoNonEmptyIter: NonEmptyIterator<Item = Self::Item>;

    // Required method
    fn into_non_empty_iter(self) -> Self::IntoNonEmptyIter;
}
Expand description

Represents types that can be converted into non-empty iterators.

This is similar to IntoIterator, but specifically for non-empty iterators.

Any NonEmptyIterator is also IntoNonEmptyIterator, akin to how any Iterator is also IntoIterator.

Required Associated Types§

Source

type IntoNonEmptyIter: NonEmptyIterator<Item = Self::Item>

What kind of NonEmptyIterator are we turning this into?

Required Methods§

Source

fn into_non_empty_iter(self) -> Self::IntoNonEmptyIter

Converts self into NonEmptyIterator.

Implementors§