Trait Obs

Source
pub trait Obs: Clone + Debug {
    // Required methods
    fn dummy(n: usize) -> Self;
    fn len(&self) -> usize;
}
Expand description

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.

Required Methods§

Source

fn dummy(n: usize) -> Self

Returns a dummy observation.

The observation created with this method is ignored.

Source

fn len(&self) -> usize

Returns the number of observations in the object.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§