FallibleLending

Trait FallibleLending 

Source
pub trait FallibleLending<'lend, __ImplBound: ImplBound = Ref<'lend, Self>> {
    type Lend: 'lend;
}
Expand description

A trait for dealing with the ‘items’ of fallible lending iterators.

Must be defined for any type that implements FallibleLender.

It implicitly restricts the lifetime 'lend used in FallibleLending<'lend> to be where Self: 'lend.

Required Associated Types§

Source

type Lend: 'lend

The type being lent.

Implementations on Foreign Types§

Source§

impl<'lend, L: FallibleLender> FallibleLending<'lend> for &mut L

Source§

type Lend = <L as FallibleLending<'lend>>::Lend

Implementors§

Source§

impl<'a, 'lend, L, I> FallibleLending<'lend> for LendFallibleIter<'a, L, I>
where L: ?Sized + for<'all> FallibleLending<'all> + 'a, I: FallibleIterator<Item = FallibleLend<'a, L>>,

Source§

type Lend = <L as FallibleLending<'lend>>::Lend

Source§

impl<'lend, 'a, E, L> FallibleLending<'lend> for FallibleRepeat<'a, E, L>
where L: ?Sized + for<'all> FallibleLending<'all> + 'a, for<'all> FallibleLend<'all, L>: Clone,

Source§

type Lend = <L as FallibleLending<'lend>>::Lend

Source§

impl<'lend, 'a, L, E, F> FallibleLending<'lend> for FallibleRepeatWith<'a, L, E, F>
where L: ?Sized + for<'all> FallibleLending<'all> + 'a, F: FnMut() -> Result<FallibleLend<'a, L>, E>,

Source§

type Lend = <L as FallibleLending<'lend>>::Lend

Source§

impl<'lend, 'this, L, G> FallibleLending<'lend> for IntersperseWith<'this, L, G>
where L: FallibleLender, G: FnMut() -> Result<FallibleLend<'this, L>, L::Error>,

Source§

type Lend = <L as FallibleLending<'lend>>::Lend

Source§

impl<'lend, 'this, L: FallibleLender> FallibleLending<'lend> for Flatten<'this, L>
where for<'all> FallibleLend<'all, L>: IntoFallibleLender,

Source§

impl<'lend, 'this, L: FallibleLender, F> FallibleLending<'lend> for FlatMap<'this, L, F>
where Map<L, F>: FallibleLender, for<'all> FallibleLend<'all, Map<L, F>>: IntoFallibleLender,

Source§

impl<'lend, A, B> FallibleLending<'lend> for Chain<A, B>
where A: FallibleLender, B: FallibleLender<Error = A::Error> + for<'all> FallibleLending<'all, Lend = FallibleLend<'all, A>>,

Source§

type Lend = <A as FallibleLending<'lend>>::Lend

Source§

impl<'lend, A, B> FallibleLending<'lend> for Zip<A, B>
where A: FallibleLender, B: FallibleLender<Error = A::Error>,

Source§

type Lend = (<A as FallibleLending<'lend>>::Lend, <B as FallibleLending<'lend>>::Lend)

Source§

impl<'lend, B, L, F> FallibleLending<'lend> for FilterMap<L, F>
where F: FnMut(FallibleLend<'lend, L>) -> Result<Option<B>, L::Error>, B: 'lend, L: FallibleLender,

Source§

type Lend = B

Source§

impl<'lend, B, L, P> FallibleLending<'lend> for MapWhile<L, P>
where P: FnMut(FallibleLend<'lend, L>) -> Result<Option<B>, L::Error>, L: FallibleLender, B: 'lend,

Source§

type Lend = B

Source§

impl<'lend, B, L, St, F> FallibleLending<'lend> for Scan<L, St, F>
where F: FnMut((&'lend mut St, FallibleLend<'lend, L>)) -> Result<Option<B>, L::Error>, L: FallibleLender, B: 'lend,

Source§

type Lend = B

Source§

impl<'lend, E, I> FallibleLending<'lend> for Convert<E, I>
where I: LendingResult<'lend, E>,

Source§

type Lend = <<I as Lending<'lend>>::Lend as Try>::Output

Source§

impl<'lend, E, L> FallibleLending<'lend> for FallibleEmpty<E, L>
where L: ?Sized + for<'all> FallibleLending<'all>,

Source§

type Lend = <L as FallibleLending<'lend>>::Lend

Source§

impl<'lend, E, L> FallibleLending<'lend> for FallibleOnce<'_, E, L>
where L: ?Sized + for<'all> FallibleLending<'all>,

Source§

type Lend = <L as FallibleLending<'lend>>::Lend

Source§

impl<'lend, E, L> FallibleLending<'lend> for IntoFallible<E, L>
where L: Lending<'lend>,

Source§

type Lend = <L as Lending<'lend>>::Lend

Source§

impl<'lend, E, L, F> FallibleLending<'lend> for MapErr<E, L, F>
where L: FallibleLender,

Source§

type Lend = <L as FallibleLending<'lend>>::Lend

Source§

impl<'lend, L> FallibleLending<'lend> for Cycle<L>
where L: Clone + FallibleLender,

Source§

type Lend = <L as FallibleLending<'lend>>::Lend

Source§

impl<'lend, L> FallibleLending<'lend> for Enumerate<L>
where L: FallibleLender,

Source§

type Lend = (usize, <L as FallibleLending<'lend>>::Lend)

Source§

impl<'lend, L> FallibleLending<'lend> for Intersperse<'_, L>
where for<'all> FallibleLend<'all, L>: Clone, L: FallibleLender,

Source§

type Lend = <L as FallibleLending<'lend>>::Lend

Source§

impl<'lend, L> FallibleLending<'lend> for Peekable<'_, L>
where L: FallibleLender,

Source§

type Lend = <L as FallibleLending<'lend>>::Lend

Source§

impl<'lend, L> FallibleLending<'lend> for Fuse<L>
where L: FallibleLender,

Source§

type Lend = <L as FallibleLending<'lend>>::Lend

Source§

impl<'lend, L> FallibleLending<'lend> for Rev<L>
where L: FallibleLender,

Source§

type Lend = <L as FallibleLending<'lend>>::Lend

Source§

impl<'lend, L> FallibleLending<'lend> for Skip<L>
where L: FallibleLender,

Source§

type Lend = <L as FallibleLending<'lend>>::Lend

Source§

impl<'lend, L> FallibleLending<'lend> for StepBy<L>
where L: FallibleLender,

Source§

type Lend = <L as FallibleLending<'lend>>::Lend

Source§

impl<'lend, L> FallibleLending<'lend> for Take<L>
where L: FallibleLender,

Source§

type Lend = <L as FallibleLending<'lend>>::Lend

Source§

impl<'lend, L, F> FallibleLending<'lend> for Inspect<L, F>
where L: FallibleLender, F: FnMut(&FallibleLend<'lend, L>) -> Result<(), L::Error>,

Source§

type Lend = <L as FallibleLending<'lend>>::Lend

Source§

impl<'lend, L, F> FallibleLending<'lend> for Map<L, F>
where F: for<'all> FnMutHKARes<'all, FallibleLend<'all, L>, L::Error>, L: FallibleLender,

Source§

type Lend = <F as FnMutHKARes<'lend, <L as FallibleLending<'lend>>::Lend, <L as FallibleLender>::Error>>::B

Source§

impl<'lend, L, F> FallibleLending<'lend> for Mutate<L, F>
where L: FallibleLender, F: FnMut(&mut FallibleLend<'lend, L>) -> Result<(), L::Error>,

Source§

type Lend = <L as FallibleLending<'lend>>::Lend

Source§

impl<'lend, L, P> FallibleLending<'lend> for Filter<L, P>
where P: FnMut(&FallibleLend<'lend, L>) -> Result<bool, L::Error>, L: FallibleLender,

Source§

type Lend = <L as FallibleLending<'lend>>::Lend

Source§

impl<'lend, L, P> FallibleLending<'lend> for SkipWhile<L, P>
where P: FnMut(&FallibleLend<'lend, L>) -> Result<bool, L::Error>, L: FallibleLender,

Source§

type Lend = <L as FallibleLending<'lend>>::Lend

Source§

impl<'lend, L, P> FallibleLending<'lend> for TakeWhile<L, P>
where P: FnMut(&FallibleLend<'lend, L>) -> Result<bool, L::Error>, L: FallibleLender,

Source§

type Lend = <L as FallibleLending<'lend>>::Lend

Source§

impl<'lend, St, E, F> FallibleLending<'lend> for FallibleOnceWith<St, E, F>
where F: for<'all> FnOnceHKARes<'all, &'all mut St, E>,

Source§

type Lend = <F as FnOnceHKARes<'lend, &'lend mut St, E>>::B

Source§

impl<'lend, St, E, F> FallibleLending<'lend> for FromFallibleFn<St, E, F>
where F: for<'all> FnMutHKAResOpt<'all, &'all mut St, E>,

Source§

type Lend = <F as FnMutHKAResOpt<'lend, &'lend mut St, E>>::B

Source§

impl<'lend, T> FallibleLending<'lend> for Chunk<'_, T>
where T: FallibleLender,

Source§

type Lend = <T as FallibleLending<'lend>>::Lend

Source§

impl<I: FallibleIterator> FallibleLending<'_> for FromFallibleIter<I>