pub struct TrickCountTable {
pub tricks: [[u8; 4]; 5],
}Expand description
Double-dummy result table: tricks each seat takes as declarer at each strain.
Indexed by (strain, seat). The storage is a flat [[u8; 4]; 5]
where the first axis is the strain in ascending order — Clubs,
Diamonds, Hearts, Spades, Notrump (matching Strain’s enum integer
values) — and the second is the seat in dealing order — North, East,
South, West (matching Seat).
Each entry is in 0..=13. A later release may upgrade this to a
validated newtype that mirrors ddss::tricks::TrickCountTable.
Fields§
§tricks: [[u8; 4]; 5]Per-(strain, seat) trick count, in 0..=13.
Implementations§
Trait Implementations§
Source§impl Clone for TrickCountTable
impl Clone for TrickCountTable
Source§fn clone(&self) -> TrickCountTable
fn clone(&self) -> TrickCountTable
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 TrickCountTable
impl Debug for TrickCountTable
Source§impl Default for TrickCountTable
impl Default for TrickCountTable
Source§fn default() -> TrickCountTable
fn default() -> TrickCountTable
Returns the “default value” for a type. Read more
Source§impl PartialEq for TrickCountTable
impl PartialEq for TrickCountTable
Source§fn eq(&self, other: &TrickCountTable) -> bool
fn eq(&self, other: &TrickCountTable) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for TrickCountTable
impl Eq for TrickCountTable
impl StructuralPartialEq for TrickCountTable
Auto Trait Implementations§
impl Freeze for TrickCountTable
impl RefUnwindSafe for TrickCountTable
impl Send for TrickCountTable
impl Sync for TrickCountTable
impl Unpin for TrickCountTable
impl UnsafeUnpin for TrickCountTable
impl UnwindSafe for TrickCountTable
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more