Trait ToObservation
pub trait ToObservation<O> {
// Required method
fn to_observation(&self, device: &Device) -> O;
}Expand description
Defines how an environment’s state is converted to a policy’s observation.
Required Methods§
fn to_observation(&self, device: &Device) -> O
fn to_observation(&self, device: &Device) -> O
Convert an environment’s state to a policy’s observation, moving it to the given device if needed.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".