pub struct AtariRamEnv { /* private fields */ }Implementations§
Trait Implementations§
Source§impl GymEnv<i32> for AtariRamEnv
impl GymEnv<i32> for AtariRamEnv
fn state_size(&self) -> Vec<usize>
Source§fn action_space(&self) -> ActionSpace<i32>
fn action_space(&self) -> ActionSpace<i32>
it’s hard to cover all types of action_space:
discrete/continuous, box, hierarchical, etc
Supported action types: Read more
fn state(&self, out: ArrayViewMut<'_, f32, IxDyn>) -> Result<()>
fn step(&mut self, action: ArrayD<i32>) -> Result<i32>
fn is_over(&self) -> bool
fn reset(&mut self)
Auto Trait Implementations§
impl Freeze for AtariRamEnv
impl RefUnwindSafe for AtariRamEnv
impl Send for AtariRamEnv
impl Sync for AtariRamEnv
impl Unpin for AtariRamEnv
impl UnwindSafe for AtariRamEnv
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> 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