pub trait Save<S: Simulator, A: Analysis, T>: FromSaved<S, A> {
    // Required method
    fn save(
        ctx: &SimulationContext<S>,
        to_save: T,
        opts: &mut <S as Simulator>::Options
    ) -> <Self as FromSaved<S, A>>::SavedKey;
}
Expand description

A simulation output that can be saved in an analysis within a given simulator.

T is any type that can be used as arguments for deciding what should be saved in this simulation output.

Required Methods§

source

fn save( ctx: &SimulationContext<S>, to_save: T, opts: &mut <S as Simulator>::Options ) -> <Self as FromSaved<S, A>>::SavedKey

Marks the given output for saving, returning a key that can be used to recover the output once the simulation is complete.

Object Safety§

This trait is not object safe.

Implementors§