Struct FlattenOk
#[must_use = "iterator adaptors are lazy and do nothing unless consumed"]
pub struct FlattenOk<I, T, E>
where
I: Iterator<Item = Result<T, E>>,
T: IntoIterator, { /* private fields */ }
An iterator adaptor that flattens Result::Ok values and
allows Result::Err values through unchanged.
See .flatten_ok() for more information.
Trait Implementations
impl<I, T, E> Clone for FlattenOk<I, T, E>
where
I: Iterator<Item = Result<T, E>> + Clone,
T: IntoIterator,
T::IntoIter: Clone,
fn clone(&self) -> Self
impl<I, T, E> Debug for FlattenOk<I, T, E>
where
I: Iterator<Item = Result<T, E>> + Debug,
T: IntoIterator,
T::IntoIter: Debug,
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl<I, T, E> DoubleEndedIterator for FlattenOk<I, T, E>
where
I: DoubleEndedIterator<Item = Result<T, E>>,
T: IntoIterator,
T::IntoIter: DoubleEndedIterator,
fn next_back(&mut self) -> Option<Self::Item>fn rfold<B, F>(self, init: B, f: F) -> B where Self: Sized, F: FnMut(B, Self::Item) -> B,
impl<I, T, E> FusedIterator for FlattenOk<I, T, E>
where
I: FusedIterator<Item = Result<T, E>>,
T: IntoIterator,
impl<I, T, E> Iterator for FlattenOk<I, T, E>
where
I: Iterator<Item = Result<T, E>>,
T: IntoIterator,
type Item = Result<<T as IntoIterator>::Item, E>;fn next(&mut self) -> Option<Self::Item>fn fold<B, F>(self, init: B, f: F) -> B where Self: Sized, F: FnMut(B, Self::Item) -> B,fn size_hint(&self) -> (usize, Option<usize>)