pub struct Size {
pub length: f32,
pub girth: f32,
pub size_type: SizeType,
}
Expand description
Size is a struct that represents the size of a cock.
Implementation of Score trait for Size. The score is calculated based on the size type.
Function to create a Size instance from given length and girth in centimeters.
Function to create a Size instance from given length and girth in inches.
Performs copy-assignment from
source.
Read more
Formats the value using the given formatter.
Read more
Function to format the Size instance.
Function to calculate the score of a Size instance.
Immutably borrows from an owned value.
Read more
Mutably borrows from an owned value.
Read more
Returns the argument unchanged.
Calls U::from(self).
That is, this conversion is whatever the implementation of
From<T> for U chooses to do.
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning.
Read more
Uses borrowed data to replace owned data, usually by cloning.
Read more
Converts the given value to a
String.
Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Calls the given closure and return the result.
Read more
Calls the given closure on self.
Calls the given closure on self.
Calls the given closure if condition == true.