pub struct Tree {
pub board: Vec<Card>,
pub root: Node,
pub num_decision_nodes: usize,
}Expand description
A betting tree and the board it starts from.
Fields§
§board: Vec<Card>The board the first street starts on: 3, 4, or 5 cards.
root: NodeThe first node: OOP’s first decision, unless no stack is left to bet.
num_decision_nodes: usizeThe number of decision nodes; their ids are 0..num_decision_nodes.
Trait Implementations§
impl StructuralPartialEq for Tree
Auto Trait Implementations§
impl Forget for Tree
impl Freeze for Treewhere
*const u8 is !null: Freeze,
PhantomData<Card>: Freeze,
PhantomData<Action>: Freeze,
PhantomData<Node>: Freeze,
PhantomData<(Vec<Card>, Node)>: Freeze,
impl Move for Tree
impl RefUnwindSafe for Tree
impl Send for Treewhere
RawVecInner: Send,
impl Sync for Treewhere
RawVecInner: Sync,
impl Unpin for Tree
impl UnsafeUnpin for Treewhere
*const u8 is !null: UnsafeUnpin,
PhantomData<Card>: UnsafeUnpin,
PhantomData<Action>: UnsafeUnpin,
PhantomData<Node>: UnsafeUnpin,
PhantomData<(Vec<Card>, Node)>: UnsafeUnpin,
impl UnwindSafe for Treewhere
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