#[non_exhaustive]pub struct NodeStats {
pub visits: u32,
pub value: f64,
pub prior: f64,
}Expand description
What a search knows about one node of its tree, as selection sees it.
Non-exhaustive: later selection rules may need more, such as pending evaluations.
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.visits: u32Simulations that passed through the node; stops counting at u32::MAX.
value: f64The sum of Side::Max’s rewards over those simulations, each in [0, 1].
prior: f64The node’s prior probability among its siblings, from Evaluator::priors;
uniform unless the evaluator gives priors.
Implementations§
Trait Implementations§
impl Copy for NodeStats
impl StructuralPartialEq for NodeStats
Auto Trait Implementations§
impl Forget for NodeStats
impl Freeze for NodeStats
impl Move for NodeStats
impl RefUnwindSafe for NodeStats
impl Send for NodeStats
impl Sync for NodeStats
impl Unpin for NodeStats
impl UnsafeUnpin for NodeStats
impl UnwindSafe for NodeStats
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