[][src]Struct rubot::alpha_beta::Action

pub struct Action<T: Game> {
    pub fitness: T::Fitness,
    pub path: Vec<T::Action>,
}

A top level action.

Fields

fitness: T::Fitness

The current fitness of a given action.

This can mean one of the following things:

  • For the best unfinished action, this is exact, but only for the current depth.
  • For a terminated action, this is exact.
  • For a partially terminated action, this is the upper limit.
path: Vec<T::Action>

The expected path taken during optimal play, when only inspectnig up to the current depth.

This used as a stack, with path.pop() being the first action.

Trait Implementations

impl<T: Game> Debug for Action<T> where
    T::Action: Debug,
    T::Fitness: Debug
[src]

Auto Trait Implementations

impl<T> RefUnwindSafe for Action<T> where
    <T as Game>::Action: RefUnwindSafe,
    <T as Game>::Fitness: RefUnwindSafe

impl<T> Send for Action<T> where
    <T as Game>::Action: Send,
    <T as Game>::Fitness: Send

impl<T> Sync for Action<T> where
    <T as Game>::Action: Sync,
    <T as Game>::Fitness: Sync

impl<T> Unpin for Action<T> where
    <T as Game>::Action: Unpin,
    <T as Game>::Fitness: Unpin

impl<T> UnwindSafe for Action<T> where
    <T as Game>::Action: UnwindSafe,
    <T as Game>::Fitness: 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> Tap for T[src]

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.