pub trait Save<S: Simulator, A: Analysis> {
type SaveKey;
type Saved;
// Required methods
fn save(
&self,
ctx: &SimulationContext<S>,
opts: &mut <S as Simulator>::Options,
) -> <Self as Save<S, A>>::SaveKey;
fn from_saved(
output: &<A as Analysis>::Output,
key: &<Self as Save<S, A>>::SaveKey,
) -> <Self as Save<S, A>>::Saved;
}
Expand description
A schematic object that can be saved in an analysis within a given simulator.
Required Associated Types§
Sourcetype SaveKey
type SaveKey
The key type used to address the saved output within the analysis.
This key is assigned in Save::save
.
Required Methods§
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.