pub struct CompiledStep<O, S> {
pub obs: O,
pub state: S,
pub reward: f32,
pub terminated: bool,
pub truncated: bool,
pub final_observation: O,
pub discount: f32,
}Expand description
One step of a compiled environment (the fields of crate::Step).
Fields§
§obs: OThe next observation: after a reset if the episode ended.
state: SThe next state: a fresh one if the episode ended.
reward: f32The reward of the step.
terminated: boolWhether the episode ended in a terminal state.
truncated: boolWhether the episode reached its time limit.
final_observation: OThe observation reached by the step, before any reset.
discount: f320 if the step reached a terminal state, 1 otherwise.
Trait Implementations§
impl<O: PartialEq, S: PartialEq> StructuralPartialEq for CompiledStep<O, S>
Auto Trait Implementations§
impl<O, S> Freeze for CompiledStep<O, S>
impl<O, S> RefUnwindSafe for CompiledStep<O, S>where
O: RefUnwindSafe,
S: RefUnwindSafe,
impl<O, S> Send for CompiledStep<O, S>
impl<O, S> Sync for CompiledStep<O, S>
impl<O, S> Unpin for CompiledStep<O, S>
impl<O, S> UnsafeUnpin for CompiledStep<O, S>where
O: UnsafeUnpin,
S: UnsafeUnpin,
impl<O, S> UnwindSafe for CompiledStep<O, S>where
O: UnwindSafe,
S: 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