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§
Sourcetype IntoNonEmptyIter: NonEmptyIterator<Item = Self::Item>
type IntoNonEmptyIter: NonEmptyIterator<Item = Self::Item>
What kind of NonEmptyIterator are we turning this into?
Required Methods§
Sourcefn into_non_empty_iter(self) -> Self::IntoNonEmptyIter
fn into_non_empty_iter(self) -> Self::IntoNonEmptyIter
Converts self into NonEmptyIterator.