[][src]Struct oxymcts::MctsNode

pub struct MctsNode<T, Move, Reward, AdditionalInfo = ()> where
    Reward: Clone,
    T: Clone,
    Move: Clone,
    AdditionalInfo: Clone + Default
{ pub sum_rewards: Reward, pub n_visits: Nat, pub unvisited_moves: Vec<Move>, pub hash: u64, pub state: T, pub additional_info: AdditionalInfo, }

Fields

sum_rewards: Rewardn_visits: Natunvisited_moves: Vec<Move>

All the moves who don't have a node. at the creation this list contains all the legals moves from the state.

hash: u64state: Tadditional_info: AdditionalInfo

Implementations

impl<T, Move, Reward, AdditionalInfo> MctsNode<T, Move, Reward, AdditionalInfo> where
    Reward: Clone,
    T: Clone,
    Move: Clone,
    AdditionalInfo: Clone + Default
[src]

pub fn can_add_child(&self) -> bool[src]

pub fn hash(&self) -> u64[src]

Trait Implementations

impl<T: Clone, Move: Clone, Reward: Clone, AdditionalInfo: Clone> Clone for MctsNode<T, Move, Reward, AdditionalInfo> where
    Reward: Clone,
    T: Clone,
    Move: Clone,
    AdditionalInfo: Clone + Default
[src]

impl<T, M, R, A> Debug for MctsNode<T, M, R, A> where
    R: Clone + Add + Div + ToPrimitive + Zero,
    T: Clone,
    M: Clone,
    A: Clone + Default
[src]

impl<T, M, R, A> Deref for MctsNode<T, M, R, A> where
    R: Clone + Add + Div + ToPrimitive + Zero,
    T: Clone + GameTrait,
    M: Clone,
    A: Clone + Default
[src]

type Target = T

The resulting type after dereferencing.

impl<T, M, R, A> DerefMut for MctsNode<T, M, R, A> where
    R: Clone + Add + Div + Zero + ToPrimitive,
    T: Clone + GameTrait,
    M: Clone,
    A: Clone + Default
[src]

impl<T, M, R, A> PartialEq<MctsNode<T, M, R, A>> for MctsNode<T, M, R, A> where
    R: Clone + Add + Div + Zero + ToPrimitive,
    T: Clone,
    M: Clone,
    A: Clone + Default
[src]

Unstable

Auto Trait Implementations

impl<T, Move, Reward, AdditionalInfo> RefUnwindSafe for MctsNode<T, Move, Reward, AdditionalInfo> where
    AdditionalInfo: RefUnwindSafe,
    Move: RefUnwindSafe,
    Reward: RefUnwindSafe,
    T: RefUnwindSafe

impl<T, Move, Reward, AdditionalInfo> Send for MctsNode<T, Move, Reward, AdditionalInfo> where
    AdditionalInfo: Send,
    Move: Send,
    Reward: Send,
    T: Send

impl<T, Move, Reward, AdditionalInfo> Sync for MctsNode<T, Move, Reward, AdditionalInfo> where
    AdditionalInfo: Sync,
    Move: Sync,
    Reward: Sync,
    T: Sync

impl<T, Move, Reward, AdditionalInfo> Unpin for MctsNode<T, Move, Reward, AdditionalInfo> where
    AdditionalInfo: Unpin,
    Move: Unpin,
    Reward: Unpin,
    T: Unpin

impl<T, Move, Reward, AdditionalInfo> UnwindSafe for MctsNode<T, Move, Reward, AdditionalInfo> where
    AdditionalInfo: UnwindSafe,
    Move: UnwindSafe,
    Reward: UnwindSafe,
    T: 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> From<T> for T[src]

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

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>,