pub struct BridgeBoard {
pub south: Pile,
pub west: Pile,
pub north: Pile,
pub east: Pile,
/* private fields */
}
Expand description
BridgeBoard
is a French Deck Pack that sorts and validates the hands dealt as a part
of a Bridge hand.
Fields§
§south: Pile
§west: Pile
§north: Pile
§east: Pile
Implementations§
source§impl BridgeBoard
impl BridgeBoard
sourcepub fn from_pbn_deal(deal: &str) -> Self
pub fn from_pbn_deal(deal: &str) -> Self
Parses a Portable Bridge Notation deal string and converts it into a
BridgeBoard
struct.
§Panics
Will panic if an invalid PBN deal string is passed in.
pub fn deal() -> BridgeBoard
pub fn demo(&self)
pub fn demo_compass(&self)
pub fn get_pack(&self) -> &Pack
pub fn is_valid(&self) -> bool
sourcepub fn to_pbn_deal(&self) -> String
pub fn to_pbn_deal(&self) -> String
Returns a Portable Bridge Notation deal string from a Bridge Board.
Trait Implementations§
source§impl Clone for BridgeBoard
impl Clone for BridgeBoard
source§fn clone(&self) -> BridgeBoard
fn clone(&self) -> BridgeBoard
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for BridgeBoard
impl Debug for BridgeBoard
source§impl Default for BridgeBoard
impl Default for BridgeBoard
source§impl Display for BridgeBoard
impl Display for BridgeBoard
source§impl Hash for BridgeBoard
impl Hash for BridgeBoard
source§impl PartialEq for BridgeBoard
impl PartialEq for BridgeBoard
source§fn eq(&self, other: &BridgeBoard) -> bool
fn eq(&self, other: &BridgeBoard) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for BridgeBoard
Auto Trait Implementations§
impl Freeze for BridgeBoard
impl RefUnwindSafe for BridgeBoard
impl Send for BridgeBoard
impl Sync for BridgeBoard
impl Unpin for BridgeBoard
impl UnwindSafe for BridgeBoard
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more