Trait Score
Source 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.
Source§The Score trait implementation for Balls provides a score value based on the balls.