pub struct VecStep<O> {
pub obs: Vec<O>,
pub reward: Vec<f32>,
pub terminated: Vec<bool>,
pub truncated: Vec<bool>,
pub final_obs: Vec<O>,
}Expand description
The result of VecEnv::step: one entry per environment.
Fields§
§obs: Vec<O>The next observations (after a reset where an episode ended).
reward: Vec<f32>The rewards.
terminated: Vec<bool>Whether each episode ended in a terminal state.
truncated: Vec<bool>Whether each episode reached its time limit.
final_obs: Vec<O>The observations reached by the step, before any reset (the same as
obs where the episode goes on).
Trait Implementations§
Auto Trait Implementations§
impl<O> Freeze for VecStep<O>
impl<O> RefUnwindSafe for VecStep<O>where
O: RefUnwindSafe,
impl<O> Send for VecStep<O>where
O: Send,
impl<O> Sync for VecStep<O>where
O: Sync,
impl<O> Unpin for VecStep<O>where
O: Unpin,
impl<O> UnsafeUnpin for VecStep<O>
impl<O> UnwindSafe for VecStep<O>where
O: UnwindSafe,
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