pub enum Balls {
NonExistant,
Tiny,
Normal,
BigSwingers,
PossibleCancer,
}Expand description
Balls is an enum that represents the size of the balls.
Variants§
Trait Implementations§
source§impl Display for Balls
impl Display for Balls
The std::fmt::Display trait implementation for Balls returns a string representation of the balls.
source§impl FromString for Balls
impl FromString for Balls
The FromString trait implementation for Balls returns an Balls variant based on the string provided.
source§fn from_string(balls: &str) -> Balls
fn from_string(balls: &str) -> Balls
Function to create an instance of the type implementing this trait from a string.
source§impl GetVariants for Balls
impl GetVariants for Balls
The GetVariants trait implementation for Balls returns a vector of the possible variants of Balls.
source§fn get_variants() -> Vec<String>
fn get_variants() -> Vec<String>
Function to get the variants of the object.
source§impl PartialEq<Balls> for Balls
impl PartialEq<Balls> for Balls
impl StructuralPartialEq for Balls
Auto Trait Implementations§
impl RefUnwindSafe for Balls
impl Send for Balls
impl Sync for Balls
impl Unpin for Balls
impl UnwindSafe for Balls
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