pub trait AggregateFn: Default {
// Required method
fn aggregate(&mut self, score: f32, total: &mut f32);
// Provided method
fn post_aggregate(&mut self, _total: &mut f32) { ... }
}
Required Methods§
Provided Methods§
fn post_aggregate(&mut self, _total: &mut 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.