[][src]Struct cardpack::BridgeBoard

pub struct BridgeBoard {
    pub south: Pile,
    pub west: Pile,
    pub north: Pile,
    pub east: Pile,
    // some fields omitted
}

BridgeBoard is a French Deck Pack that sorts and validates the hands dealt as a part of a Bridge hand.

Fields

south: Pilewest: Pilenorth: Pileeast: Pile

Implementations

impl BridgeBoard[src]

pub fn from_pbn_deal(deal: &str) -> BridgeBoard[src]

Parses a Portable Bridge Notation deal string and converts it into a BridgeBoard struct.

pub fn deal() -> BridgeBoard[src]

pub fn demo(&self)[src]

pub fn get_pack(&self) -> &Pack[src]

pub fn is_valid(&self) -> bool[src]

pub fn to_pbn_deal(&self) -> String[src]

Returns a Portable Bridge Notation deal string from a Bridge Board.

Trait Implementations

impl Clone for BridgeBoard[src]

impl Debug for BridgeBoard[src]

impl Default for BridgeBoard[src]

impl Hash for BridgeBoard[src]

impl PartialEq<BridgeBoard> for BridgeBoard[src]

impl StructuralPartialEq for BridgeBoard[src]

Auto Trait Implementations

Blanket Implementations

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

impl<T> AnyEq for T where
    T: PartialEq<T> + Any

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

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