pub struct Step<S> {
pub state: S,
pub cost: f64,
pub done: bool,
}Expand description
The result of one model step.
Fields§
§state: SThe successor state.
cost: f64The cost of the step (minimised; -reward for reward models).
done: boolWhether the episode ended: the rest of the sequence is not simulated.
Trait Implementations§
impl<S: PartialEq> StructuralPartialEq for Step<S>
Auto Trait Implementations§
impl<S> Forget for Step<S>
impl<S> Freeze for Step<S>where
S: Freeze,
impl<S> Move for Step<S>
impl<S> RefUnwindSafe for Step<S>where
S: RefUnwindSafe,
impl<S> Send for Step<S>where
S: Send,
impl<S> Sync for Step<S>where
S: Sync,
impl<S> Unpin for Step<S>where
S: Unpin,
impl<S> UnsafeUnpin for Step<S>where
S: UnsafeUnpin,
impl<S> UnwindSafe for Step<S>where
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