pub struct Action<T: Game> {
pub fitness: T::Fitness,
pub path: Vec<T::Action>,
}
Expand description
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§
Auto Trait Implementations§
impl<T> Freeze for Action<T>
impl<T> RefUnwindSafe for Action<T>
impl<T> Send for Action<T>
impl<T> Sync for Action<T>
impl<T> Unpin for Action<T>
impl<T> UnwindSafe for Action<T>
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