Struct fallible_iterator::MapErr
[−]
[src]
pub struct MapErr<I, F> { // some fields omitted }
An iterator which applies a transform to the errors of the underlying iterator.
pub struct MapErr<I, F> { // some fields omitted }
An iterator which applies a transform to the errors of the underlying iterator.
impl<B, F, I> FallibleIterator for MapErr<I, F> where I: FallibleIterator, F: FnMut(I::Error) -> B
type Item = I::Item
type Error = B
fn next(&mut self) -> Result<Option<I::Item>, B>
fn size_hint(&self) -> (usize, Option<usize>)
fn count(self) -> Result<usize, B>
fn all<F>(&mut self, f: F) -> Result<bool, Self::Error> where Self: Sized, F: FnMut(Self::Item) -> bool
fn any<F>(&mut self, f: F) -> Result<bool, Self::Error> where Self: Sized, F: FnMut(Self::Item) -> bool
fn by_ref(&mut self) -> &mut Self where Self: Sized
fn chain<I>(self, it: I) -> Chain<Self, I> where I: IntoFallibleIterator<Item=Self::Item, Error=Self::Error>, Self: Sized
fn cloned<'a, T>(self) -> Cloned<Self> where Self: Sized + FallibleIterator<Item=&'a T>, T: 'a + Clone
fn collect<T>(self) -> Result<T, Self::Error> where T: FromFallibleIterator<Self::Item>, Self: Sized
fn enumerate(self) -> Enumerate<Self> where Self: Sized
fn filter<F>(self, f: F) -> Filter<Self, F> where Self: Sized, F: FnMut(&Self::Item) -> bool
fn filter_map<B, F>(self, f: F) -> FilterMap<Self, F> where Self: Sized, F: FnMut(Self::Item) -> Option<B>
fn find<F>(&mut self, f: F) -> Result<Option<Self::Item>, Self::Error> where Self: Sized, F: FnMut(&Self::Item) -> bool
fn fuse(self) -> Fuse<Self> where Self: Sized
fn fold<B, F>(self, init: B, f: F) -> Result<B, Self::Error> where Self: Sized, F: FnMut(B, Self::Item) -> B
fn iterator(self) -> Iterator<Self> where Self: Sized
fn last(self) -> Result<Option<Self::Item>, Self::Error> where Self: Sized
fn map<B, F>(self, f: F) -> Map<Self, F> where F: FnMut(Self::Item) -> B, Self: Sized
fn map_err<B, F>(self, f: F) -> MapErr<Self, F> where F: FnMut(Self::Error) -> B, Self: Sized
fn max(self) -> Result<Option<Self::Item>, Self::Error> where Self: Sized, Self::Item: Ord
fn max_by_key<B, F>(self, f: F) -> Result<Option<Self::Item>, Self::Error> where Self: Sized, B: Ord, F: FnMut(&Self::Item) -> B
fn min(self) -> Result<Option<Self::Item>, Self::Error> where Self: Sized, Self::Item: Ord
fn min_by_key<B, F>(self, f: F) -> Result<Option<Self::Item>, Self::Error> where Self: Sized, B: Ord, F: FnMut(&Self::Item) -> B
fn nth(&mut self, n: usize) -> Result<Option<Self::Item>, Self::Error>
fn peekable(self) -> Peekable<Self> where Self: Sized
fn position<F>(&mut self, f: F) -> Result<Option<usize>, Self::Error> where Self: Sized, F: FnMut(Self::Item) -> bool
fn rev(self) -> Rev<Self> where Self: Sized + DoubleEndedFallibleIterator
fn take(self, n: usize) -> Take<Self> where Self: Sized
fn zip<I>(self, o: I) -> Zip<Self, I::IntoIter> where Self: Sized, I: IntoFallibleIterator<Error=Self::Error>
fn cmp<I>(self, other: I) -> Result<Ordering, Self::Error> where Self: Sized, I: IntoFallibleIterator<Item=Self::Item, Error=Self::Error>, Self::Item: Ord
fn partial_cmp<I>(self, other: I) -> Result<Option<Ordering>, Self::Error> where Self: Sized, I: IntoFallibleIterator<Error=Self::Error>, Self::Item: PartialOrd<I::Item>
fn eq<I>(self, other: I) -> Result<bool, Self::Error> where Self: Sized, I: IntoFallibleIterator<Error=Self::Error>, Self::Item: PartialEq<I::Item>
fn ne<I>(self, other: I) -> Result<bool, Self::Error> where Self: Sized, I: IntoFallibleIterator<Error=Self::Error>, Self::Item: PartialEq<I::Item>
fn lt<I>(self, other: I) -> Result<bool, Self::Error> where Self: Sized, I: IntoFallibleIterator<Error=Self::Error>, Self::Item: PartialOrd<I::Item>
fn le<I>(self, other: I) -> Result<bool, Self::Error> where Self: Sized, I: IntoFallibleIterator<Error=Self::Error>, Self::Item: PartialOrd<I::Item>
fn gt<I>(self, other: I) -> Result<bool, Self::Error> where Self: Sized, I: IntoFallibleIterator<Error=Self::Error>, Self::Item: PartialOrd<I::Item>
fn ge<I>(self, other: I) -> Result<bool, Self::Error> where Self: Sized, I: IntoFallibleIterator<Error=Self::Error>, Self::Item: PartialOrd<I::Item>
impl<B, F, I> DoubleEndedFallibleIterator for MapErr<I, F> where I: DoubleEndedFallibleIterator, F: FnMut(I::Error) -> B
impl<I: Debug, F: Debug> Debug for MapErr<I, F>