Struct etterna::Scorekey[][src]

pub struct Scorekey(_);

Represents an Etterna scorekey

Implementations

impl Scorekey[src]

pub fn is_valid(key: &str) -> bool[src]

Check if the given string represents a valid key

pub fn new(key: String) -> Option<Self>[src]

Create a new key from the given string, or None if the string is invalid.

pub fn as_str(&self) -> &str[src]

Get a reference to the underlying string

pub fn into_string(self) -> String[src]

Convert this key into a String

Trait Implementations

impl AsRef<str> for Scorekey[src]

impl Clone for Scorekey[src]

impl Debug for Scorekey[src]

impl Display for Scorekey[src]

impl Eq for Scorekey[src]

impl FromStr for Scorekey[src]

type Err = ()

The associated error which can be returned from parsing.

impl Hash for Scorekey[src]

impl PartialEq<Scorekey> for Scorekey[src]

impl StructuralEq for Scorekey[src]

impl StructuralPartialEq for Scorekey[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> ToString for T where
    T: Display + ?Sized
[src]

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.