pub trait Statistics {
// Required methods
fn get(&self, stat: Stat) -> Option<Scalar>;
fn to_set(&self) -> StatsSet;
fn set(&self, stat: Stat, value: Scalar);
fn compute(&self, stat: Stat) -> Option<Scalar>;
}
Required Methods§
Sourcefn get(&self, stat: Stat) -> Option<Scalar>
fn get(&self, stat: Stat) -> Option<Scalar>
Returns the value of the statistic only if it’s present