pub trait Iris {
// Required method
fn data(&self) -> &UnclassifiedIris;
// Provided method
fn dist_sq(&self, other: &dyn Iris) -> f32 { ... }
}
Expand description
Iris functionalities that are independent of classification or lack of it.