Struct etterna::Chartkey[][src]

pub struct Chartkey(_);

Represents an Etterna chartkey

Implementations

impl Chartkey[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 Chartkey[src]

impl Clone for Chartkey[src]

impl Debug for Chartkey[src]

impl Display for Chartkey[src]

impl Eq for Chartkey[src]

impl FromStr for Chartkey[src]

type Err = ()

The associated error which can be returned from parsing.

impl Hash for Chartkey[src]

impl PartialEq<Chartkey> for Chartkey[src]

impl StructuralEq for Chartkey[src]

impl StructuralPartialEq for Chartkey[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.