pub trait EstimatorMut<L: EstimationLogic + ?Sized>: Estimator<L> + AsMut<L::Backend> {
// Required methods
fn add(&mut self, element: impl Borrow<L::Item>);
fn clear(&mut self);
fn set(&mut self, backend: &L::Backend);
}
Expand description
A mutable estimator.
A mutable estimator must implement AsMut
so to return a mutable
reference to its backend.
Required Methods§
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.