pub trait DistCalculator {
// Required methods
fn distance(&self, id: u32) -> f32;
fn distance_all(&self) -> Vec<f32>;
// Provided method
fn prefetch(&self, _id: u32) { ... }
}
Expand description
API stability is not guaranteed
pub trait DistCalculator {
// Required methods
fn distance(&self, id: u32) -> f32;
fn distance_all(&self) -> Vec<f32>;
// Provided method
fn prefetch(&self, _id: u32) { ... }
}
API stability is not guaranteed