Struct cock_lib::CockStruct
source · pub struct CockStruct {
pub size: Size,
pub aesthetic: Aesthetic,
pub balls: Balls,
pub shape: Shape,
pub curvature: Curvature,
pub circumcision: Circumcision,
pub veininess: Veininess,
pub abnormalities: Abnormalities,
}Expand description
Struct representing detailed information about a CockStruct. Each property of a CockStruct is represented by a separate field, enabling fine-grained control and accurate descriptions.
Fields§
§size: Size§aesthetic: Aesthetic§balls: Balls§shape: Shape§curvature: Curvature§circumcision: Circumcision§veininess: Veininess§abnormalities: AbnormalitiesImplementations§
source§impl CockStruct
impl CockStruct
sourcepub fn new(
size: Size,
aesthetic: Aesthetic,
balls: Balls,
shape: Shape,
curvature: Curvature,
circumcision: Circumcision,
veininess: Veininess,
abnormalities: Abnormalities
) -> CockStruct
pub fn new( size: Size, aesthetic: Aesthetic, balls: Balls, shape: Shape, curvature: Curvature, circumcision: Circumcision, veininess: Veininess, abnormalities: Abnormalities ) -> CockStruct
Constructor for creating a new instance of CockStruct. All parameters needed to fully describe a CockStruct are passed in as arguments.
sourcepub fn default() -> CockStruct
pub fn default() -> CockStruct
Constructor for creating a new instance of CockStruct with the ‘default’ values.
sourcepub fn from_str_part(&mut self, part: &str, new: &str)
pub fn from_str_part(&mut self, part: &str, new: &str)
Function for editing an existing instance of a CockStruct value.
The part parameter is used to specify which part of the CockStruct to edit.
The new parameter is used to specify the new value of the part.
sourcepub fn get_custom(&mut self, part: &str, item: &str, new: &str)
pub fn get_custom(&mut self, part: &str, item: &str, new: &str)
Function for editing an existing instance of a CockStruct value.
The item parameter is used to verify whether the current CockStruct value requires a user submitted value.
Abnormalities::Major, Abnormalities::Minor, Shape::Other, and Curvature::Other all require a user submitted value.
The part parameter is used to specify which part of the CockStruct to edit (“Abnormalities”, “Shape”, “Curvature”).
The new parameter is used to specify the new value of the part.
Trait Implementations§
source§impl Clone for CockStruct
impl Clone for CockStruct
source§fn clone(&self) -> CockStruct
fn clone(&self) -> CockStruct
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for CockStruct
impl Debug for CockStruct
source§impl Display for CockStruct
impl Display for CockStruct
This implementation of std::fmt::Display allows a CockStruct to be converted to a string for easy display.