Trait StatsProvider

Source
pub trait StatsProvider {
    // Required methods
    fn get(&self, stat: Stat) -> Option<Precision<ScalarValue>>;
    fn len(&self) -> usize;

    // Provided method
    fn is_empty(&self) -> bool { ... }
}

Required Methods§

Source

fn get(&self, stat: Stat) -> Option<Precision<ScalarValue>>

Source

fn len(&self) -> usize

Count of stored stats with known values.

Provided Methods§

Source

fn is_empty(&self) -> bool

Predicate equivalent to a len of zero.

Implementors§