#[non_exhaustive]pub struct TreeStats {
pub simulations: u64,
pub nodes: u64,
pub depth: u32,
}Expand description
Counters of one Monte Carlo tree search, which its Budget sees.
Non-exhaustive: later versions may add counters. Start from TreeStats::default.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.simulations: u64Simulations run: selection, one leaf evaluation and the backup.
nodes: u64Nodes in the tree, the root included; each holds one position’s statistics.
depth: u32The depth of the deepest node, counted in moves from the root.
Trait Implementations§
impl Copy for TreeStats
impl Eq for TreeStats
impl StructuralPartialEq for TreeStats
Auto Trait Implementations§
impl Forget for TreeStats
impl Freeze for TreeStats
impl Move for TreeStats
impl RefUnwindSafe for TreeStats
impl Send for TreeStats
impl Sync for TreeStats
impl Unpin for TreeStats
impl UnsafeUnpin for TreeStats
impl UnwindSafe for TreeStats
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