[][src]Struct lordeckcodes::CardCodeAndCount

pub struct CardCodeAndCount { /* fields omitted */ }

Stores card-related information.

Implementations

impl CardCodeAndCount[src]

pub fn from_data(code: &str, count: i32) -> Result<CardCodeAndCount, LorError>[src]

Create a CardCodeAndCount from the provided code and card count.

pub fn card(&self) -> &Card[src]

pub fn count(&self) -> i32[src]

Trait Implementations

impl Clone for CardCodeAndCount[src]

impl Debug for CardCodeAndCount[src]

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

impl Eq for CardCodeAndCount[src]

impl Hash for CardCodeAndCount[src]

impl Ord for CardCodeAndCount[src]

impl PartialEq<CardCodeAndCount> for CardCodeAndCount[src]

impl PartialOrd<CardCodeAndCount> for CardCodeAndCount[src]

impl Serialize for CardCodeAndCount[src]

impl StructuralEq for CardCodeAndCount[src]

impl StructuralPartialEq for CardCodeAndCount[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> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[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.