pub enum Skill {
Noob,
Easy,
Medium,
Hard,
Expert,
}
Expand description
Different skills.
Variants§
Implementations§
Source§impl Skill
impl Skill
pub fn from_str(name: &str) -> Self
pub fn as_str(&self) -> &'static str
pub fn width(&self) -> usize
pub fn def_density(self) -> HashMap<SlabDef, f64>
pub fn def_density0(self) -> HashMap<SlabDef, f64>
pub fn mutability(&self) -> f64
pub fn time_to_complete(self) -> f64
pub fn begin_speed_factor(self) -> f64
pub fn end_speed_factor(self) -> f64
Trait Implementations§
impl Copy for Skill
impl Eq for Skill
impl StructuralPartialEq for Skill
Auto Trait Implementations§
impl Freeze for Skill
impl RefUnwindSafe for Skill
impl Send for Skill
impl Sync for Skill
impl Unpin for Skill
impl UnwindSafe for Skill
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