pub trait SliceEstimationLogic<T>: EstimationLogic<Backend = [T]> {
// Required method
fn backend_len(&self) -> usize;
}
Expand description
Trait implemented by estimation logics whose backend is a slice of elements of some type.
Required Methods§
Sourcefn backend_len(&self) -> usize
fn backend_len(&self) -> usize
The number of elements of type T
in a backend.
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.