pub struct VecStepResult {
pub obs: Vec<f32>,
pub rewards: Vec<f32>,
pub dones: Vec<bool>,
}Expand description
Result returned by VecEnv::step.
Fields§
§obs: Vec<f32>Flattened observations for all environments, length = n_envs × obs_dim.
For done environments this is the first observation of the new episode (auto-reset semantics).
rewards: Vec<f32>Per-environment scalar rewards, length = n_envs.
dones: Vec<bool>Per-environment done flags, length = n_envs.
Trait Implementations§
Source§impl Clone for VecStepResult
impl Clone for VecStepResult
Source§fn clone(&self) -> VecStepResult
fn clone(&self) -> VecStepResult
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 moreAuto Trait Implementations§
impl Freeze for VecStepResult
impl RefUnwindSafe for VecStepResult
impl Send for VecStepResult
impl Sync for VecStepResult
impl Unpin for VecStepResult
impl UnsafeUnpin for VecStepResult
impl UnwindSafe for VecStepResult
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