Trait Inspector

Source
pub trait Inspector<V> {
    // Required methods
    fn log(&mut self, value: V);
    fn inspect(&self, step: usize) -> Option<V>;
    fn save(&self);
}
Expand description

Trait allowing custom behavior to be defined for logging and inspecting values.

Required Methods§

Source

fn log(&mut self, value: V)

Log a value to state.

Source

fn inspect(&self, step: usize) -> Option<V>

Inspect a value at a given time step.

Source

fn save(&self)

Save the inspector state.

Implementors§