Skip to main content

PreparedCountExt

Trait PreparedCountExt 

Source
pub trait PreparedCountExt {
    // Provided method
    fn count<'e, Params, E: PgExecutor<'e>>(
        &self,
        executor: E,
        params: Params,
    ) -> impl Future<Output = Result<i64>>
       where Self: PreparedTotal<Params> { ... }
}
Expand description

The bound is on the method, and the impls are per-builder, for the two reasons LoadExt explains.

Provided Methods§

Source

fn count<'e, Params, E: PgExecutor<'e>>( &self, executor: E, params: Params, ) -> impl Future<Output = Result<i64>>
where Self: PreparedTotal<Params>,

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl<D, Params, Output> PreparedCountExt for Prepared<D, Params, Output>

Implementors§