pub struct Transition<B: Backend, S, O> {
pub obs: O,
pub state: S,
pub reward: F32<B>,
pub terminated: Bool<B>,
}Expand description
The result of Environment::step_env.
Fields§
§obs: OThe observation after the step.
state: SThe state after the step.
reward: F32<B>The reward of the step.
terminated: Bool<B>Whether the episode ended in a terminal state.
Trait Implementations§
Auto Trait Implementations§
impl<B, S, O> Freeze for Transition<B, S, O>
impl<B, S, O> RefUnwindSafe for Transition<B, S, O>where
O: RefUnwindSafe,
S: RefUnwindSafe,
<B as Backend>::Scalar<f32>: RefUnwindSafe,
<B as Backend>::Scalar<bool>: RefUnwindSafe,
impl<B, S, O> Send for Transition<B, S, O>
impl<B, S, O> Sync for Transition<B, S, O>
impl<B, S, O> Unpin for Transition<B, S, O>
impl<B, S, O> UnsafeUnpin for Transition<B, S, O>where
O: UnsafeUnpin,
S: UnsafeUnpin,
<B as Backend>::Scalar<f32>: UnsafeUnpin,
<B as Backend>::Scalar<bool>: UnsafeUnpin,
impl<B, S, O> UnwindSafe for Transition<B, S, O>where
O: UnwindSafe,
S: UnwindSafe,
<B as Backend>::Scalar<f32>: UnwindSafe,
<B as Backend>::Scalar<bool>: 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