pub trait FlatObs {
// Required methods
fn shape(&self) -> Vec<usize>;
fn write_f32(&self, out: &mut [f32]);
}Expand description
A native observation that can be copied into a flat f32 buffer, for
VecEnv::step_into (which the NumPy arrays of the Python package use).
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".