Skip to main content

LogData

Trait LogData 

Source
pub trait LogData:
    Clone
    + Debug
    + Default {
    // Required methods
    fn merge(&mut self, other: &Self);
    fn clear(&mut self);
    fn episode_count(&self) -> f32;
}
Expand description

Log data that environments can return for tracking metrics.

Required Methods§

Source

fn merge(&mut self, other: &Self)

Merge another log into this one (for aggregation).

Source

fn clear(&mut self)

Clear/reset the log counters.

Source

fn episode_count(&self) -> f32

Get the number of episodes recorded.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§