pub enum Node {
Decision {
id: usize,
player: Player,
actions: Vec<Action>,
children: Vec<Node>,
},
Chance {
children: Vec<(Vec<Card>, Node)>,
},
Terminal(Terminal),
}Expand description
A node of the betting tree.
Variants§
Decision
A player chooses one of actions.
Fields
Chance
Deals the next community card.
Cards are grouped into suit-isomorphism classes (see
GameConfig::suit_isomorphism): each entry is one class’s member
cards plus the subtree built from its representative (members[0]).
With isomorphism disabled every class is a singleton, so this is
equivalent to one child per undealt card (52 minus however many board
cards have been dealt so far along this path).
Terminal(Terminal)
The hand is over.
Trait Implementations§
impl StructuralPartialEq for Node
Auto Trait Implementations§
impl Forget for Node
impl Freeze for Nodewhere
*const u8 is !null: Freeze,
PhantomData<Action>: Freeze,
PhantomData<Node>: Freeze,
PhantomData<(Vec<Card>, Node)>: Freeze,
impl Move for Node
impl RefUnwindSafe for Node
impl Send for Nodewhere
RawVecInner: Send,
impl Sync for Nodewhere
RawVecInner: Sync,
impl Unpin for Node
impl UnsafeUnpin for Nodewhere
*const u8 is !null: UnsafeUnpin,
PhantomData<Action>: UnsafeUnpin,
PhantomData<Node>: UnsafeUnpin,
PhantomData<(Vec<Card>, Node)>: UnsafeUnpin,
impl UnwindSafe for Nodewhere
RawVecInner: UnwindSafe,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more