This reference describes unreleased code on main; no release documents it yet.

rlmesh::types::PredictContext

structPreviewuse rlmesh::types::PredictContext;[source]

What a context-reading corner learns about the episode it predicts for.

struct PredictContext<'a>

episode_id

field[source]
episode_id: &'a str

The episode’s id ("" for an anonymous row).

episode_seed

field[source]
episode_seed: Option<i64>

The episode’s reset seed, fixed at its first predict.

predict_index

field[source]
predict_index: u64

How many context-reading predicts the episode had before this one.

predict_seed

field[source]
predict_seed: Option<i64>

predict_seed(episode_seed, predict_index), None when the episode is unseeded or anonymous.

state

field[source]
state: &'a mut EpisodeState

The episode’s free state.

Trait implementations

  • impl<'a> Debug for PredictContext<'a>