Trait substrate::simulation::Simulator
source · pub trait Simulator: Installation + Any + Send + Sync {
type Schema: Schema;
type Input;
type Options;
type Output;
type Error;
// Required method
fn simulate_inputs(
&self,
ctx: &SimulationContext<Self>,
options: Self::Options,
input: Vec<Self::Input>
) -> Result<Vec<Self::Output>, Self::Error>;
// Provided method
fn simulate<A>(
&self,
ctx: &SimulationContext<Self>,
options: Self::Options,
input: A
) -> Result<A::Output, Self::Error>
where A: SupportedBy<Self>,
Self: Sized { ... }
}
Expand description
A circuit simulator.
Required Associated Types§
Required Methods§
sourcefn simulate_inputs(
&self,
ctx: &SimulationContext<Self>,
options: Self::Options,
input: Vec<Self::Input>
) -> Result<Vec<Self::Output>, Self::Error>
fn simulate_inputs( &self, ctx: &SimulationContext<Self>, options: Self::Options, input: Vec<Self::Input> ) -> Result<Vec<Self::Output>, Self::Error>
Simulates the given set of analyses.
Provided Methods§
sourcefn simulate<A>(
&self,
ctx: &SimulationContext<Self>,
options: Self::Options,
input: A
) -> Result<A::Output, Self::Error>where
A: SupportedBy<Self>,
Self: Sized,
fn simulate<A>(
&self,
ctx: &SimulationContext<Self>,
options: Self::Options,
input: A
) -> Result<A::Output, Self::Error>where
A: SupportedBy<Self>,
Self: Sized,
Simulates the given, possibly composite, analysis.
Object Safety§
This trait is not object safe.