pub struct NimRule {
pub take: TakeSize,
pub split: Split,
}
Expand description
A rule for a Nim game.
This struct specifies a set of possible moves for a player.
Fields§
§take: TakeSize
Specifies the number of coins that can be taken from a stack in a single move
split: Split
Specifies whether the player may/must split a stack into two stacks
Trait Implementations§
Source§impl<'de> Deserialize<'de> for NimRule
impl<'de> Deserialize<'de> for NimRule
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 Ord for NimRule
impl Ord for NimRule
Source§impl PartialOrd for NimRule
impl PartialOrd for NimRule
impl Eq for NimRule
impl StructuralPartialEq for NimRule
Auto Trait Implementations§
impl Freeze for NimRule
impl RefUnwindSafe for NimRule
impl Send for NimRule
impl Sync for NimRule
impl Unpin for NimRule
impl UnwindSafe for NimRule
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