[][src]Struct ggpf::policies::mcts::MCTSNode

pub struct MCTSNode<G: MCTSGame, MCTS: BaseMCTSPolicy<G>> {
    pub state: G,
    pub reward: f32,
    pub node: MCTS::NodeInfo,
    pub moves: HashMap<G::Move, MCTS::MoveInfo>,
}

Node information

Fields

state: G

Node state.

reward: f32

Reward when arriving in this node state, from parent.

node: MCTS::NodeInfo

Additional node statistics, policy-specific.

moves: HashMap<G::Move, MCTS::MoveInfo>

Additional moves statistics, policy-specific.

Trait Implementations

impl<G: Clone + MCTSGame, MCTS: Clone + BaseMCTSPolicy<G>> Clone for MCTSNode<G, MCTS> where
    MCTS::NodeInfo: Clone,
    G::Move: Clone,
    MCTS::MoveInfo: Clone
[src]

impl<G, MCTS> Debug for MCTSNode<G, MCTS> where
    G: MCTSGame,
    MCTS: BaseMCTSPolicy<G>, 
[src]

Auto Trait Implementations

impl<G, MCTS> RefUnwindSafe for MCTSNode<G, MCTS> where
    G: RefUnwindSafe,
    <G as Base>::Move: RefUnwindSafe,
    <MCTS as BaseMCTSPolicy<G>>::MoveInfo: RefUnwindSafe,
    <MCTS as BaseMCTSPolicy<G>>::NodeInfo: RefUnwindSafe

impl<G, MCTS> Send for MCTSNode<G, MCTS> where
    <G as Base>::Move: Send,
    <MCTS as BaseMCTSPolicy<G>>::MoveInfo: Send,
    <MCTS as BaseMCTSPolicy<G>>::NodeInfo: Send

impl<G, MCTS> Sync for MCTSNode<G, MCTS> where
    <G as Base>::Move: Sync,
    <MCTS as BaseMCTSPolicy<G>>::MoveInfo: Sync,
    <MCTS as BaseMCTSPolicy<G>>::NodeInfo: Sync

impl<G, MCTS> Unpin for MCTSNode<G, MCTS> where
    G: Unpin,
    <G as Base>::Move: Unpin,
    <MCTS as BaseMCTSPolicy<G>>::MoveInfo: Unpin,
    <MCTS as BaseMCTSPolicy<G>>::NodeInfo: Unpin

impl<G, MCTS> UnwindSafe for MCTSNode<G, MCTS> where
    G: UnwindSafe,
    <G as Base>::Move: UnwindSafe,
    <MCTS as BaseMCTSPolicy<G>>::MoveInfo: UnwindSafe,
    <MCTS as BaseMCTSPolicy<G>>::NodeInfo: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Erased for T

impl<T> From<T> for T[src]

impl<T> FromPy<T> for T

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> IntoPy<U> for T where
    U: FromPy<T>, 

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 

impl<T> With for T