pub trait StatisticalMethod<T>{
// Required methods
fn add(&mut self, rate: f32, payload: T) -> Outcome<T>;
fn delete(&mut self, outcome: Outcome<T>);
fn update(&mut self, outcome: Outcome<T>, new_rate: f32) -> Outcome<T>;
fn extract<Random: Rng>(&self, rnd: &mut Random) -> (ExtractStats, T, f32);
}
Required Methods§
fn add(&mut self, rate: f32, payload: T) -> Outcome<T>
fn delete(&mut self, outcome: Outcome<T>)
fn update(&mut self, outcome: Outcome<T>, new_rate: f32) -> Outcome<T>
fn extract<Random: Rng>(&self, rnd: &mut Random) -> (ExtractStats, T, f32)
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.