pub trait Score {
// Required method
fn score(&self) -> u32;
}
Expand description
Score is a trait for objects that can be scored.
The score function returns a u32 representing the score of the object.
The Score trait implementation for Abnormalities provides a score value based on the type of abnormality.
The Score trait implementation for Aesthetic provides a score value based on the aesthetic.
The Score trait implementation for Balls provides a score value based on the balls.