Trait csvsc::Aggregate[][src]

pub trait Aggregate {
    fn update(&mut self, headers: &Headers, row: &Row) -> Result<()>;
fn value(&self) -> String;
fn colname(&self) -> &str; }

Aggregates used while reducing must implement this trait.

Required methods

fn update(&mut self, headers: &Headers, row: &Row) -> Result<()>[src]

Updates the current value with the next row of data.

fn value(&self) -> String[src]

Gets the current value.

fn colname(&self) -> &str[src]

Gets this aggregate’s colname

Loading content...

Implementors

Loading content...