Enum dpc::common::mc::Difficulty
source · pub enum Difficulty {
Peaceful,
Easy,
Normal,
Hard,
}Variants§
Implementations§
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 Codegen for Difficulty
impl Codegen for Difficulty
fn gen_writer<F>(
&self,
f: &mut F,
cbcx: &mut CodegenBlockCx<'_, '_>
) -> Result<()>where
F: Write,
fn gen_str(&self, cbcx: &mut CodegenBlockCx<'_, '_>) -> Result<String>
source§impl Debug for Difficulty
impl Debug for Difficulty
source§impl Display for Difficulty
impl Display for Difficulty
source§impl PartialEq for Difficulty
impl PartialEq for Difficulty
source§fn eq(&self, other: &Difficulty) -> bool
fn eq(&self, other: &Difficulty) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Eq for Difficulty
impl StructuralEq for Difficulty
impl StructuralPartialEq for Difficulty
Auto Trait Implementations§
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