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
Structs
- This struct handles all operations related to the CockStruct entity. It keeps track of an identifier and the CockStruct itself.
- This struct encapsulates the result of a score calculation, CockResult. It includes the raw score and the percentage score.
- 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.
- 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 is a struct that represents the size of a cock.
Enums
- The Abnormalities enum represents the different types of abnormalities of the cock.
- /// The Aesthetic enum represents different aesthetic values of a cock.
- Balls is an enum that represents the size of the balls.
- Circumcision is an enum that represents the circumcision status of a cock.
- 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.
- Represents a unique identifier for a user, their ID. Variants include an anonymous identifier or a specific user.
- 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.
- The Tier enum represents the grade given to a cock.
- 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 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 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.