AsyncLendingIteratorExt

Trait AsyncLendingIteratorExt 

Source
pub trait AsyncLendingIteratorExt: AsyncLendingIterator {
    // Provided methods
    fn map_ok<F, O>(self, func: F) -> MapOk<Self, F>
       where F: Fn(Self::Ok<'_>) -> O,
             Self: Sized { ... }
    fn map_err<F, O>(self, func: F) -> MapErr<Self, F>
       where F: Fn(Self::Err) -> O,
             Self: Sized { ... }
    fn try_map<F, T, E>(self, func: F) -> Map<Self, F>
       where F: Fn(Result<Self::Ok<'_>, Self::Err>) -> Result<T, E>,
             Self: Sized { ... }
    fn try_collect<T>(self) -> impl Future<Output = Result<T, Self::Err>> + Send
       where T: Default + for<'i> Extend<Self::Ok<'i>> + Send,
             Self: Send + Sized { ... }
    fn try_collect_into<T>(
        self,
        collection: &mut T,
    ) -> impl Future<Output = Result<&mut T, Self::Err>> + Send
       where T: for<'i> Extend<Self::Ok<'i>> + Send,
             Self: Send + Sized { ... }
}

Provided Methods§

Source

fn map_ok<F, O>(self, func: F) -> MapOk<Self, F>
where F: Fn(Self::Ok<'_>) -> O, Self: Sized,

Source

fn map_err<F, O>(self, func: F) -> MapErr<Self, F>
where F: Fn(Self::Err) -> O, Self: Sized,

Source

fn try_map<F, T, E>(self, func: F) -> Map<Self, F>
where F: Fn(Result<Self::Ok<'_>, Self::Err>) -> Result<T, E>, Self: Sized,

Source

fn try_collect<T>(self) -> impl Future<Output = Result<T, Self::Err>> + Send
where T: Default + for<'i> Extend<Self::Ok<'i>> + Send, Self: Send + Sized,

Source

fn try_collect_into<T>( self, collection: &mut T, ) -> impl Future<Output = Result<&mut T, Self::Err>> + Send
where T: for<'i> Extend<Self::Ok<'i>> + Send, Self: Send + Sized,

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§