Struct backgammon::rules::Cube
source · pub struct Cube { /* private fields */ }
Expand description
Represents a Backgammon cube (doubling cube).
This cube represents an increase in the value of the current game. The cube – a doubling of the value of the game – can be offered by any player the first time it is used. After that, it can only be offered by the player who last took the cube.
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Cube
impl<'de> Deserialize<'de> for Cube
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq<Cube> for Cube
impl PartialEq<Cube> for Cube
impl StructuralPartialEq for Cube
Auto Trait Implementations§
impl RefUnwindSafe for Cube
impl Send for Cube
impl Sync for Cube
impl Unpin for Cube
impl UnwindSafe for Cube
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