pub struct Avg { /* private fields */ }
Expand description

AVG aggregate expression

Implementations

Create a new AVG aggregate function

Trait Implementations

Return a reference to Any that can be used for downcasting

the field of the final result of this aggregation.

the accumulator used to accumulate values from the expressions. the accumulator expects the same number of arguments as expressions and must return states with the same description as state_fields Read more

the fields that encapsulate the Accumulator’s state the number of fields here equals the number of states that the accumulator contains Read more

expressions that are passed to the Accumulator. Single-column aggregations such as sum return a single value, others (e.g. cov) return many. Read more

Human readable name such as "MIN(c2)". The default implementation returns placeholder text. Read more

If the aggregate expression is supported by row format

RowAccumulator to access/update row-based aggregation state in-place. Currently, row accumulator only supports states of fixed-sized type. Read more

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.