pub struct FourCardPegging { /* private fields */ }
Implementations§
Source§impl FourCardPegging
impl FourCardPegging
pub fn new(cards: [Card; 4]) -> FourCardPegging
pub fn play_card( self, card: Card, pegger: &mut Pegger, ) -> Result<(u8, ThreeCardPegging), (Self, CribbageCoreError)>
Trait Implementations§
Source§impl Clone for FourCardPegging
impl Clone for FourCardPegging
Source§fn clone(&self) -> FourCardPegging
fn clone(&self) -> FourCardPegging
Returns a duplicate 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 moreimpl Copy for FourCardPegging
Auto Trait Implementations§
impl Freeze for FourCardPegging
impl RefUnwindSafe for FourCardPegging
impl Send for FourCardPegging
impl Sync for FourCardPegging
impl Unpin for FourCardPegging
impl UnwindSafe for FourCardPegging
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