xitca_postgres::iter

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 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: T,
    ) -> impl Future<Output = Result<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 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: T, ) -> impl Future<Output = Result<T, Self::Err>> + Send
where T: for<'i> Extend<Self::Ok<'i>> + Send, Self: Send + Sized,

Object Safety§

This trait is not object safe.

Implementors§