pub struct Play {
pub card: Card,
pub equals: Holding,
pub score: i8,
}Expand description
A play and its consequences
Fields§
§card: CardThe card to play, the highest in a sequence
For example, if the solution is to play a card from ♥KQJ, this field would be ♥K.
equals: HoldingLower equals in the sequence
Playing any card in a sequence is equal in bridge and many trick-taking
games. This field contains lower cards in the sequence as card. For
example, if the solution is to play KQJ, this field would contain QJ.
score: i8Tricks this play would score
Trait Implementations§
impl Copy for Play
impl Eq for Play
impl StructuralPartialEq for Play
Auto Trait Implementations§
impl Freeze for Play
impl RefUnwindSafe for Play
impl Send for Play
impl Sync for Play
impl Unpin for Play
impl UnwindSafe for Play
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