[][src]Enum solitaire_core::card::rank::Rank

pub enum Rank {
    Two,
    Three,
    Four,
    Five,
    Six,
    Seven,
    Eight,
    Nine,
    Ten,
    Jack,
    Queen,
    King,
    Ace,
    Joker,
    Unknown,
}

Simple Enum to represent card ranks

Variants

Two
Three
Four
Five
Six
Seven
Eight
Nine
Ten
Jack
Queen
King
Ace
Joker
Unknown

Methods

impl Rank[src]

pub fn all() -> Vec<Rank>[src]

pub fn to_char(&self) -> char[src]

pub fn to_index(&self) -> u8[src]

Trait Implementations

impl Debug for Rank[src]

impl Serialize for Rank[src]

impl<'de> Deserialize<'de> for Rank[src]

Auto Trait Implementations

impl Send for Rank

impl Sync for Rank

impl Unpin for Rank

impl UnwindSafe for Rank

impl RefUnwindSafe for Rank

Blanket Implementations

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

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

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

type Error = !

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.

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

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

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

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,