Trait IntoSelectExt

Source
pub trait IntoSelectExt<'columns, 'transaction, S>: IntoSelect<'columns, 'transaction, S> {
    // Required method
    fn map_select<T>(
        self,
        f: impl 'transaction + FnMut(Self::Out) -> T,
    ) -> Select<'columns, 'transaction, S, T>;
}
Expand description

IntoSelectExt adds extra methods to values that implement IntoSelect.

Required Methods§

Source

fn map_select<T>( self, f: impl 'transaction + FnMut(Self::Out) -> T, ) -> Select<'columns, 'transaction, S, T>

Map the result of a Select using native rust.

This is useful when retrieving custom types from the database. It is also useful in migrations to process rows using arbitrary rust.

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§

Source§

impl<'columns, 'transaction, S, X> IntoSelectExt<'columns, 'transaction, S> for X
where X: IntoSelect<'columns, 'transaction, S>,