pub struct Board<P, S>{ /* private fields */ }
Implementations§
Source§impl<P, S> Board<P, S>
impl<P, S> Board<P, S>
pub fn add_points( &mut self, id: P, points: S::Output, ) -> Result<S::Output, CribbageCoreError>
pub fn subtract_points( &mut self, id: P, points: S::Output, ) -> Result<S::Output, CribbageCoreError>
pub fn score(&self, id: P) -> S::Output
pub fn winner(&self) -> Option<P>
Auto Trait Implementations§
impl<P, S> Freeze for Board<P, S>
impl<P, S> RefUnwindSafe for Board<P, S>
impl<P, S> Send for Board<P, S>
impl<P, S> Sync for Board<P, S>
impl<P, S> Unpin for Board<P, S>
impl<P, S> UnwindSafe for Board<P, S>
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