Struct backgammon::rules::Dices
source · pub struct Dices(pub u8, pub u8);
Expand description
Represents the two dices
Backgammon is always played with two dices.
Tuple Fields§
§0: u8
§1: u8
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Dices
impl<'de> Deserialize<'de> for Dices
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<Dices> for Dices
impl PartialEq<Dices> for Dices
impl Copy for Dices
impl StructuralPartialEq for Dices
Auto Trait Implementations§
impl RefUnwindSafe for Dices
impl Send for Dices
impl Sync for Dices
impl Unpin for Dices
impl UnwindSafe for Dices
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