pub struct StepInfo {
pub reward: f32,
pub terminated: bool,
pub truncated: bool,
pub discount: f32,
}Expand description
The scalars of a step of CompiledEnv::step_in_place.
Fields§
§reward: f32The reward of the step.
terminated: boolWhether the episode ended in a terminal state.
truncated: boolWhether the episode reached its time limit.
discount: f320 if the step reached a terminal state, 1 otherwise.
Trait Implementations§
impl Copy for StepInfo
impl StructuralPartialEq for StepInfo
Auto Trait Implementations§
impl Freeze for StepInfo
impl RefUnwindSafe for StepInfo
impl Send for StepInfo
impl Sync for StepInfo
impl Unpin for StepInfo
impl UnsafeUnpin for StepInfo
impl UnwindSafe for StepInfo
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