pub struct AbstractSim { /* private fields */ }
Expand description
Simulator that maps abstract actions to ground actions via a Mapper
.
Implementations§
Trait Implementations§
Source§impl Clone for AbstractSim
impl Clone for AbstractSim
Source§fn clone(&self) -> AbstractSim
fn clone(&self) -> AbstractSim
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for AbstractSim
impl Debug for AbstractSim
Source§impl Simulator for AbstractSim
impl Simulator for AbstractSim
Source§fn simulate(&self, state: &State, action: Action) -> (State, GameVars)
fn simulate(&self, state: &State, action: Action) -> (State, GameVars)
Simulate one step from
state
with action
, returning the next state and game vars.Source§fn simulator_type(&self) -> SimulatorType
fn simulator_type(&self) -> SimulatorType
Whether this simulator works at the ground or abstract level.
Source§fn get_initial_state(&self, state: State) -> State
fn get_initial_state(&self, state: State) -> State
Transform a ground state into the appropriate simulator’s initial state.
Auto Trait Implementations§
impl Freeze for AbstractSim
impl RefUnwindSafe for AbstractSim
impl Send for AbstractSim
impl Sync for AbstractSim
impl Unpin for AbstractSim
impl UnwindSafe for AbstractSim
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more