Trait cock_lib::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.

Required Methods§

source

fn score(&self) -> u32

Implementors§

source§

impl Score for Abnormalities

The Score trait implementation for Abnormalities provides a score value based on the type of abnormality.

source§

impl Score for Aesthetic

The Score trait implementation for Aesthetic provides a score value based on the aesthetic.

source§

impl Score for Balls

The Score trait implementation for Balls provides a score value based on the balls.

source§

impl Score for Veininess

Implementing Score trait for Veininess enum. Each Veininess level corresponds to a specific score.

source§

impl Score for Size