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§
Sourcefn log(&self, statistic_logger: StatisticLogger)
fn log(&self, statistic_logger: StatisticLogger)
Logs the Statistic using the provided StatisticLogger.