Trait AggFunc

Source
pub trait AggFunc {
    type State: Default;

    const NAME: &'static str;
    const ARGS: i32;

    // Required methods
    fn step(state: &mut Self::State, args: &[Value]);
    fn finalize(state: Self::State) -> Value;
}

Required Associated Constants§

Source

const NAME: &'static str

Source

const ARGS: i32

Required Associated Types§

Required Methods§

Source

fn step(state: &mut Self::State, args: &[Value])

Source

fn finalize(state: Self::State) -> Value

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§