pub trait MovingWindowValue: Copy + Debug {
// Required methods
fn zero() -> Self;
fn add_assign(target: &mut Self, value: Self);
fn sub_assign(target: &mut Self, value: Self);
fn average(total: Self, divisor: usize) -> Self;
}Required Methods§
fn zero() -> Self
fn add_assign(target: &mut Self, value: Self)
fn sub_assign(target: &mut Self, value: Self)
fn average(total: Self, divisor: usize) -> Self
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.