pub enum DifficultyLevel {
Easy,
Medium,
Hard,
VeryHard,
Extreme,
}Expand description
Difficulty level for a vanity pattern.
Variants§
Easy
Very easy, typically < 1 minute.
Medium
Medium difficulty, 1-10 minutes.
Hard
Hard, 10-60 minutes.
VeryHard
Very hard, 1-24 hours.
Extreme
Extreme, > 24 hours.
Implementations§
Source§impl DifficultyLevel
impl DifficultyLevel
Sourcepub fn description(&self) -> &'static str
pub fn description(&self) -> &'static str
Get a human-readable description.
Trait Implementations§
Source§impl Clone for DifficultyLevel
impl Clone for DifficultyLevel
Source§fn clone(&self) -> DifficultyLevel
fn clone(&self) -> DifficultyLevel
Returns a duplicate 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 DifficultyLevel
impl Debug for DifficultyLevel
Source§impl Display for DifficultyLevel
impl Display for DifficultyLevel
Source§impl PartialEq for DifficultyLevel
impl PartialEq for DifficultyLevel
impl Copy for DifficultyLevel
impl Eq for DifficultyLevel
impl StructuralPartialEq for DifficultyLevel
Auto Trait Implementations§
impl Freeze for DifficultyLevel
impl RefUnwindSafe for DifficultyLevel
impl Send for DifficultyLevel
impl Sync for DifficultyLevel
impl Unpin for DifficultyLevel
impl UnwindSafe for DifficultyLevel
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more