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

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

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.
  • Score is a trait for objects that can be scored. The score function returns a u32 representing the score of the object.