Statistic

Trait Statistic 

Source
pub trait Statistic {
    // Required method
    fn log(&self, statistic_logger: StatisticLogger);
}
Expand description

A simple trait for defining a loggable statistic.

See [create_statistics_struct] for creating a statistic struct automatically!

Required Methods§

Source

fn log(&self, statistic_logger: StatisticLogger)

Logs the Statistic using the provided StatisticLogger.

Implementors§

Source§

impl<Value> Statistic for Value
where Value: Display,