pub enum Difficulty {
Normal,
Nightmare,
Hell,
Unknown(u8),
}Expand description
Game difficulty levels.
Variants§
Implementations§
Trait Implementations§
Source§impl Clone for Difficulty
impl Clone for Difficulty
impl Copy for Difficulty
Source§impl Debug for Difficulty
impl Debug for Difficulty
Source§impl Default for Difficulty
impl Default for Difficulty
Source§impl<'de> Deserialize<'de> for Difficulty
impl<'de> Deserialize<'de> for Difficulty
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for Difficulty
Source§impl From<Difficulty> for u8
impl From<Difficulty> for u8
Source§fn from(value: Difficulty) -> Self
fn from(value: Difficulty) -> Self
Converts to this type from the input type.
Source§impl From<u8> for Difficulty
impl From<u8> for Difficulty
Source§impl Hash for Difficulty
impl Hash for Difficulty
Source§impl Ord for Difficulty
impl Ord for Difficulty
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for Difficulty
impl PartialEq for Difficulty
Source§impl PartialOrd for Difficulty
impl PartialOrd for Difficulty
Source§impl Serialize for Difficulty
impl Serialize 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 UnsafeUnpin 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