Enum cock_lib::Abnormalities
source · pub enum Abnormalities {
None,
Minor(String),
Major(String),
}Expand description
The Abnormalities enum represents the different types of abnormalities of the cock.
Variants§
Implementations§
source§impl Abnormalities
impl Abnormalities
Additional methods for the Abnormalities struct.
sourcepub fn get_abnormality(&self) -> &str
pub fn get_abnormality(&self) -> &str
Returns a string representation of the abnormality.
Trait Implementations§
source§impl Clone for Abnormalities
impl Clone for Abnormalities
source§fn clone(&self) -> Abnormalities
fn clone(&self) -> Abnormalities
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for Abnormalities
impl Debug for Abnormalities
source§impl Display for Abnormalities
impl Display for Abnormalities
The std::fmt::Display trait implementation for Abnormalities returns a string representation of the abnormality.
source§impl FromString for Abnormalities
impl FromString for Abnormalities
The FromString trait implementation for Abnormalities returns an Abnormalities variant based on the string provided.
source§fn from_string(abnormality: &str) -> Abnormalities
fn from_string(abnormality: &str) -> Abnormalities
Function to create an instance of the type implementing this trait from a string.
source§impl GetVariants for Abnormalities
impl GetVariants for Abnormalities
The GetVariants trait implementation for Abnormalities returns a vector of the possible variants of Abnormalities.
source§fn get_variants() -> Vec<String>
fn get_variants() -> Vec<String>
Function to get the variants of the object.
source§impl PartialEq<Abnormalities> for Abnormalities
impl PartialEq<Abnormalities> for Abnormalities
source§fn eq(&self, other: &Abnormalities) -> bool
fn eq(&self, other: &Abnormalities) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl Score for Abnormalities
impl Score for Abnormalities
The Score trait implementation for Abnormalities provides a score value based on the type of abnormality.
impl StructuralPartialEq for Abnormalities
Auto Trait Implementations§
impl RefUnwindSafe for Abnormalities
impl Send for Abnormalities
impl Sync for Abnormalities
impl Unpin for Abnormalities
impl UnwindSafe for Abnormalities
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more