pub enum Difficulty {
Beginner,
Easy,
Intermediate,
Difficult,
Advanced,
// some variants omitted
}
Expand description
Represents the difficulty of a puzzle.
Variants§
Beginner
Very easy puzzles, ideal for learning a new game.
Easy
More advanced puzzles, good for practicing a new game.
Intermediate
Intermediate puzzles, good for a casual puzzle-solving session.
Difficult
Advanced, thought-provoking puzzles.
Advanced
Coffee shop puzzles.
Trait Implementations§
Source§impl Clone for Difficulty
impl Clone for Difficulty
Source§fn clone(&self) -> Difficulty
fn clone(&self) -> Difficulty
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 Difficulty
impl Debug for Difficulty
Source§impl From<usize> for Difficulty
impl From<usize> for Difficulty
Source§impl PartialEq for Difficulty
impl PartialEq for Difficulty
Source§impl PartialOrd for Difficulty
impl PartialOrd for Difficulty
impl Copy for Difficulty
impl StructuralPartialEq for Difficulty
Auto Trait Implementations§
impl Freeze for Difficulty
impl RefUnwindSafe for Difficulty
impl Send for Difficulty
impl Sync for Difficulty
impl Unpin for Difficulty
impl UnwindSafe for Difficulty
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