Type Definition relearn::simulation::PartialStep
source · [−]Expand description
Partial description of an environment step.
The successor state is omitted when the episode continues. Using this can help avoid copying the observation.
Implementations
sourceimpl<O, A, F> PartialStep<O, A, F>
impl<O, A, F> PartialStep<O, A, F>
sourcepub fn into_transient_with(self, next: &Self) -> TransientStep<'_, O, A, F>
pub fn into_transient_with(self, next: &Self) -> TransientStep<'_, O, A, F>
Convert a partial step into a transient step using the given reference to the next step.
sourcepub fn try_into_transient<'a>(self) -> Option<TransientStep<'a, O, A, F>>
pub fn try_into_transient<'a>(self) -> Option<TransientStep<'a, O, A, F>>
Try to convert into a transient step with no successor.
Succeeds so long as self.next
is not Successor::Continue
.