pub trait Statistic: 'static {
type Key: Hash + Eq + Clone + 'static;
type Value: Clone + 'static;
// Required method
fn compute(graphrecord: &GraphRecord, key: &Self::Key) -> Self::Value;
}Required Associated Types§
Required Methods§
fn compute(graphrecord: &GraphRecord, key: &Self::Key) -> Self::Value
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".