[][src]Enum solitaire_core::card::suit::Suit

pub enum Suit {
    Hearts,
    Spades,
    Diamonds,
    Clubs,
    Horseshoes,
    Stars,
    Tridents,
    Moons,
    Suitless,
    Unknown,
}

Simple Enum to represent card suits

Variants

Hearts
Spades
Diamonds
Clubs
Horseshoes
Stars
Tridents
Moons
Suitless
Unknown

Methods

impl Suit[src]

pub fn standard() -> Vec<Suit>[src]

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

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

pub fn color(&self) -> Color[src]

Trait Implementations

impl Debug for Suit[src]

impl Serialize for Suit[src]

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

Auto Trait Implementations

impl Send for Suit

impl Sync for Suit

impl Unpin for Suit

impl UnwindSafe for Suit

impl RefUnwindSafe for Suit

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>,