pub enum Tier {
S,
A,
B,
C,
D,
E,
F,
}Expand description
The Tier enum represents the grade given to a cock.
Variants§
Trait Implementations§
source§impl Display for Tier
impl Display for Tier
The std::fmt::Display trait implementation for Tier returns a string representation of the Tier variant.
source§impl FromString for Tier
impl FromString for Tier
The FromString trait implementation for Tier returns a variant of Tier.
source§fn from_string(tier: &str) -> Tier
fn from_string(tier: &str) -> Tier
Function to create an instance of the type implementing this trait from a string.
source§impl GetVariants for Tier
impl GetVariants for Tier
The GetVariants trait implementation for Tier returns a vector of the possible variants of Tier.
source§fn get_variants() -> Vec<String>
fn get_variants() -> Vec<String>
Function to get the variants of the object.
source§impl PartialEq<Tier> for Tier
impl PartialEq<Tier> for Tier
impl StructuralPartialEq for Tier
Auto Trait Implementations§
impl RefUnwindSafe for Tier
impl Send for Tier
impl Sync for Tier
impl Unpin for Tier
impl UnwindSafe for Tier
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