Trait cock_lib::GetVariants

source ·
pub trait GetVariants {
    // Required method
    fn get_variants() -> Vec<String>;
}
Expand description

GetVariants is a trait for objects that have a set of variants. The GetVariants::get_variants function returns a vector of strings, each representing a variant of the object.

Required Methods§

source

fn get_variants() -> Vec<String>

Function to get the variants of the object.

Implementors§

source§

impl GetVariants for Abnormalities

The GetVariants trait implementation for Abnormalities returns a vector of the possible variants of Abnormalities.

source§

impl GetVariants for Aesthetic

The GetVariants trait implementation for Aesthetic returns a vector of the possible variants of Aesthetic.

source§

impl GetVariants for Balls

The GetVariants trait implementation for Balls returns a vector of the possible variants of Balls.

source§

impl GetVariants for Circumcision

The GetVariants trait implementation for Circumcision returns a vector of the possible variants of Circumcision.

source§

impl GetVariants for Curvature

Implementation of the GetVariants trait for Curvature. This enables the creation of a vector containing all possible variants as string values.

source§

impl GetVariants for ID

Implementing GetVariants for ID enum to provide the different variant options for ID.

source§

impl GetVariants for Shape

Implementation of the GetVariants trait for Shape. This enables the creation of a vector containing all possible variants as string values.

source§

impl GetVariants for SizeType

The Score trait implementation for SizeType provides a score value based on the size type.

source§

impl GetVariants for Tier

The GetVariants trait implementation for Tier returns a vector of the possible variants of Tier.

source§

impl GetVariants for Veininess

Implementing GetVariants for Veininess enum to provide the different variant options for Veininess.