Enum etterna::Difficulty[][src]

pub enum Difficulty {
    Beginner,
    Easy,
    Medium,
    Hard,
    Challenge,
    Edit,
}

Chart difficulty enum

Variants

Beginner
Easy
Medium
Hard
Challenge
Edit

Implementations

impl Difficulty[src]

pub fn from_short_string(string: &str) -> Option<Self>[src]

Parses a short difficulty string as found on the Etterna evaluation screen: BG, IN…

This function is case insensitive

pub fn from_long_string(string: &str) -> Option<Self>[src]

Parse a long difficulty string. Some difficulties has multiple spellings; for example “Challenge”, “Expert” and “Insane”.

This function is case insensitive

pub fn to_short_string(self) -> &'static str[src]

Generate a short difficulty string as found on the Etterna evaluation screen.

Trait Implementations

impl Clone for Difficulty[src]

impl Copy for Difficulty[src]

impl Debug for Difficulty[src]

impl Eq for Difficulty[src]

impl FromStr for Difficulty[src]

type Err = DifficultyParseError

The associated error which can be returned from parsing.

impl Hash for Difficulty[src]

impl Ord for Difficulty[src]

impl PartialEq<Difficulty> for Difficulty[src]

impl PartialOrd<Difficulty> for Difficulty[src]

impl StructuralEq for Difficulty[src]

impl StructuralPartialEq for Difficulty[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.