Skip to main content

CountExt

Trait CountExt 

Source
pub trait CountExt {
    // Provided method
    fn count<'e, Idx, E: PgExecutor<'e>>(
        &self,
        executor: E,
    ) -> impl Future<Output = Result<i64>>
       where Self: CountQuery<Idx> { ... }
}
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, Idx, E: PgExecutor<'e>>( &self, executor: E, ) -> impl Future<Output = Result<i64>>
where Self: CountQuery<Idx>,

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, Output> CountExt for DynSelect<D, Output>

Source§

impl<D, Output> CountExt for SetOp<D, Output>

Source§

impl<D, R: InsertRow> CountExt for Insert<D, R>

Source§

impl<D, Scope, Sel, Outer> CountExt for Select<D, Scope, Sel, Outer>

Source§

impl<D, T: Table> CountExt for Delete<D, T>

Source§

impl<D, T: Table> CountExt for Update<D, T>

Source§

impl<S, Sel> CountExt for Returning<S, Sel>

Implementors§