[][src]Struct klondike_lib::Stack

pub struct Stack<'a> { /* fields omitted */ }

Methods

impl<'a> Stack<'a>[src]

pub fn new(fixed_cards: &[Card], details: StackDetails) -> Stack[src]

pub fn with_floating_cards(self, floating_cards: &'a [Card]) -> Stack<'a>[src]

pub fn with_floating_cards_spread(self, floating_cards: &'a [Card]) -> Stack<'a>[src]

pub fn details(&self) -> &StackDetails[src]

Trait Implementations

impl<'a, 'b> IntoIterator for &'b Stack<'a>[src]

type Item = &'a Card

The type of the elements being iterated over.

type IntoIter = Chain<Iter<'a, Card>, Iter<'a, Card>>

Which kind of iterator are we turning this into?

Auto Trait Implementations

impl<'a> Send for Stack<'a>

impl<'a> Sync for Stack<'a>

Blanket Implementations

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

impl<T> From for T[src]

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

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

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

type Error = <U as TryFrom<T>>::Error

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

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