pub struct TakeAction {
pub stack_index: usize,
pub amount: u64,
pub split: NimSplit,
}
Expand description
A move which takes coins from a stack
(placing them into the player’s pool, when used with Poker-Nim)
Fields§
§stack_index: usize
The index of the stack to take coins from
amount: u64
The number of coins to take from the stack
split: NimSplit
If (and possibly how) the stack should be split after taking coins
Trait Implementations§
Source§impl Clone for TakeAction
impl Clone for TakeAction
Source§fn clone(&self) -> TakeAction
fn clone(&self) -> TakeAction
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for TakeAction
impl Debug for TakeAction
Source§impl<'de> Deserialize<'de> for TakeAction
impl<'de> Deserialize<'de> for TakeAction
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 Hash for TakeAction
impl Hash for TakeAction
Source§impl Ord for TakeAction
impl Ord for TakeAction
Source§fn cmp(&self, other: &TakeAction) -> Ordering
fn cmp(&self, other: &TakeAction) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for TakeAction
impl PartialEq for TakeAction
Source§impl PartialOrd for TakeAction
impl PartialOrd for TakeAction
Source§impl Serialize for TakeAction
impl Serialize for TakeAction
impl Eq for TakeAction
impl StructuralPartialEq for TakeAction
Auto Trait Implementations§
impl Freeze for TakeAction
impl RefUnwindSafe for TakeAction
impl Send for TakeAction
impl Sync for TakeAction
impl Unpin for TakeAction
impl UnwindSafe for TakeAction
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