pub trait Iter: Sized + Iterator {
// Provided methods
fn intersperse_(self, sep: Self::Item) -> impl Iterator<Item = Self::Item>
where Self::Item: Clone { ... }
fn try_flatten<I: IntoIterator, E>(
self,
) -> impl Iterator<Item = Result<I::Item, E>>
where Self: Iterator<Item = Result<I, E>> { ... }
fn zip_longest<J: IntoIterator>(
self,
j: J,
) -> impl Iterator<Item = (Option<Self::Item>, Option<J::Item>)> { ... }
fn eq_by_<J: Iterator>(
self,
j: J,
cmp: impl FnMut(&Self::Item, &J::Item) -> bool,
) -> bool { ... }
}Provided Methods§
Sourcefn intersperse_(self, sep: Self::Item) -> impl Iterator<Item = Self::Item>
fn intersperse_(self, sep: Self::Item) -> impl Iterator<Item = Self::Item>
See https://doc.rust-lang.org/std/iter/struct.Intersperse.html
fn try_flatten<I: IntoIterator, E>( self, ) -> impl Iterator<Item = Result<I::Item, E>>
Sourcefn zip_longest<J: IntoIterator>(
self,
j: J,
) -> impl Iterator<Item = (Option<Self::Item>, Option<J::Item>)>
fn zip_longest<J: IntoIterator>( self, j: J, ) -> impl Iterator<Item = (Option<Self::Item>, Option<J::Item>)>
Walks self and j together to the end of the longer one: each item
is a pair with at least one side present, and the shorter side is
None past its end.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".