Crate cock_tier

Crate cock_tier 

Source
Expand description

A library for comprehensive grading of cocks.

cock-tier provides a modular, extensible, and detailed system for grading and classifying cocks based on various metrics.

This library allows users to:

  • Assign scores based on multiple factors such as size, shape, and aesthetics.
  • Easily extend the functionality by adding new grading methods.
  • Obtain a comprehensive summary of the cocks score, grade, stats, etc.

§Example

use cock_tier::{CockStruct, Size, Aesthetic, Balls, Shape, Curvature, Circumcision, Veininess, Abnormalities, Inches};

let cock = CockStruct::new(
    Size {
        length: 5.5,
        girth: 4.5,
        size_type: Inches,
    },
    Aesthetic::Normal,
    Balls::Normal,
    Shape::Cylindrical,
    Curvature::Straight,
    Circumcision::Uncircumcised,
    Veininess::Normal,
    Abnormalities::None,
);

// Perform your operations on `cock`

§TODO

add more examples

Re-exports§

pub use modules::size::SizeType::Centimeters;
pub use modules::size::SizeType::Inches;

Modules§

bin_modules

Structs§

CockHandler
This struct handles all operations related to the CockStruct entity. It keeps track of an identifier and the CockStruct itself.
CockResult
This struct encapsulates the result of a score calculation, CockResult. It includes the raw score and the percentage score.
CockStruct
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.
InnerUser
Represents a User of the cock analyzer. name field is the name of the user. discord_name field is the discord name of the user.
Size
Size is a struct that represents the size of a cock.

Enums§

Abnormalities
The Abnormalities enum represents the different types of abnormalities of the cock.
Aesthetic
/// The Aesthetic enum represents different aesthetic values of a cock.
Balls
Balls is an enum that represents the size of the balls.
Circumcision
Circumcision is an enum that represents the circumcision status of a cock.
Curvature
Enum representing the direction of Curvature for a cock. This includes directions Curvature::Straight, Curvature::Left, Curvature::Right, Curvature::Upwards, Curvature::Downwards, and Curvature::Other. There’s also an Curvature::Other variant that can store a custom description as a string.
ID
Represents a unique identifier for a user, their ID. Variants include an anonymous identifier or a specific user.
Shape
Enum representing the Shape for a cock. The shapes include Shape::Cylindrical, Shape::Tapered and an Shape::Other variant that can store a custom Shape description as a string.
SizeType
SizeType is an enum that represents the metric of measurement for the cocks Size
Tier
The Tier enum represents the grade given to a cock.
Veininess
Represents the level of Veininess of a cock. This is an enum with five possible values: Veininess::Invisible, Veininess::SlightPumper, Veininess::Normal, Veininess::HealthyPumper, and Veininess::Juicer.

Traits§

FromString
FromString is a trait for objects that can be constructed from a string. The FromString::from_string function takes a string reference as input and returns an instance of the type implementing this trait based on the string.
GetVariants
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.
Score
Score is a trait for objects that can be scored. The score function returns a u32 representing the score of the object.