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§
sourcefn get_variants() -> Vec<String>
fn get_variants() -> Vec<String>
Function to get the variants of the object.
Implementors§
impl GetVariants for Abnormalities
The GetVariants trait implementation for Abnormalities returns a vector of the possible variants of Abnormalities.
impl GetVariants for Aesthetic
The GetVariants trait implementation for Aesthetic returns a vector of the possible variants of Aesthetic.
impl GetVariants for Balls
The GetVariants trait implementation for Balls returns a vector of the possible variants of Balls.
impl GetVariants for Circumcision
The GetVariants trait implementation for Circumcision returns a vector of the possible variants of Circumcision.
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.
impl GetVariants for ID
Implementing GetVariants for ID enum to provide the different variant options for ID.
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.
impl GetVariants for SizeType
impl GetVariants for Tier
The GetVariants trait implementation for Tier returns a vector of the possible variants of Tier.
impl GetVariants for Veininess
Implementing GetVariants for Veininess enum to provide the different variant options for Veininess.