pub enum Action {
Show 14 variants
Up = 0,
Down = 1,
Left = 2,
Right = 3,
Nothing = 4,
AbstractAction1 = 5,
AbstractAction2 = 6,
AbstractAction3 = 7,
AbstractAction4 = 8,
AbstractAction5 = 9,
AbstractAction6 = 10,
AbstractAction7 = 11,
AbstractAction8 = 12,
Root = 13,
}Expand description
Available actions in the gridworld.
- Ground moves: Up, Down, Left, Right
- A no-op:
Nothing - Abstract actions:
AbstractAction1..8are used when acting in the abstract MDP. In a well-formed abstraction, an abstract state typically exposes 2–4 actions. Rootis a sentinel used for the MCTS tree root.
Variants§
Up = 0
Down = 1
Left = 2
Right = 3
Nothing = 4
AbstractAction1 = 5
AbstractAction2 = 6
AbstractAction3 = 7
AbstractAction4 = 8
AbstractAction5 = 9
AbstractAction6 = 10
AbstractAction7 = 11
AbstractAction8 = 12
Root = 13
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Action
impl<'de> Deserialize<'de> for Action
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Copy for Action
impl Eq for Action
impl StructuralPartialEq for Action
Auto Trait Implementations§
impl Freeze for Action
impl RefUnwindSafe for Action
impl Send for Action
impl Sync for Action
impl Unpin for Action
impl UnwindSafe for Action
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