pub trait Obs: Clone + Debug { // Required methods fn dummy(n: usize) -> Self; fn len(&self) -> usize; }
A set of observations of an environment.
Old versions of the library support vectorized environment and Obs was able to handle multiple observations. In the current version, no vectorized environment is implemented. Thus, Obs::len() always returns 1.
::len()
Returns a dummy observation.
The observation created with this method is ignored.
Returns the number of observations in the object.
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.