pub trait Rate: TestGetValue<Output = Rate> {
// Required methods
fn add_to_numerator(&self, amount: i32);
fn add_to_denominator(&self, amount: i32);
fn test_get_num_recorded_errors(&self, error: ErrorType) -> i32;
}Expand description
A description for the RateMetric type.
Required Methods§
Sourcefn add_to_numerator(&self, amount: i32)
fn add_to_numerator(&self, amount: i32)
Sourcefn add_to_denominator(&self, amount: i32)
fn add_to_denominator(&self, amount: i32)
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".