pub enum SelectionResult {
Empty,
Active(MctsNodeId, Action),
Terminal(MctsNodeId, f32),
}Expand description
Represents the outcome of a tree selection phase.
Variants§
Empty
The tree is entirely empty.
Active(MctsNodeId, Action)
A leaf node was reached. Provides the parent ID and the selected action.
Terminal(MctsNodeId, f32)
A terminal node was reached during traversal. Provides the node ID and final score.
Trait Implementations§
Source§impl Clone for SelectionResult
impl Clone for SelectionResult
Source§fn clone(&self) -> SelectionResult
fn clone(&self) -> SelectionResult
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for SelectionResult
Source§impl Debug for SelectionResult
impl Debug for SelectionResult
Source§impl PartialEq for SelectionResult
impl PartialEq for SelectionResult
Source§fn eq(&self, other: &SelectionResult) -> bool
fn eq(&self, other: &SelectionResult) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for SelectionResult
Auto Trait Implementations§
impl Freeze for SelectionResult
impl RefUnwindSafe for SelectionResult
impl Send for SelectionResult
impl Sync for SelectionResult
impl Unpin for SelectionResult
impl UnsafeUnpin for SelectionResult
impl UnwindSafe for SelectionResult
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