pub trait QValues<V> {
// Required methods
fn q_value(&self, state: usize, action: usize) -> V;
fn future_q_value(&mut self, state: usize, action: usize) -> V;
fn set_q_value(&mut self, state: usize, action: usize, value: V);
}Expand description
Required Methods§
Sourcefn future_q_value(&mut self, state: usize, action: usize) -> V
fn future_q_value(&mut self, state: usize, action: usize) -> V
The Q value of the best action in the next state, used for the
update’s target. A table returns q_value.
Sourcefn set_q_value(&mut self, state: usize, action: usize, value: V)
fn set_q_value(&mut self, state: usize, action: usize, value: V)
Stores a new Q value for action in state.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".