Skip to main content

StatsProvider

Trait StatsProvider 

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

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

Required Methods§

Source

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

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.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§