pub enum Problem {
RightOutOfTheGate,
IllegalPlay(Player, FoulPlay),
NoPlay(Player),
}Expand description
Problems that can occur during a bout
Variants§
RightOutOfTheGate
A problem that occurs before plays have been made
IllegalPlay(Player, FoulPlay)
A player played an illegal move
NoPlay(Player)
A player did not make a play
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Problem
impl RefUnwindSafe for Problem
impl Send for Problem
impl Sync for Problem
impl Unpin for Problem
impl UnsafeUnpin for Problem
impl UnwindSafe for Problem
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