pub trait Program {
// Required method
fn run<R, I, H, S>(
&self,
rng: &mut R,
machine: &mut Machine<H, I, S>,
) -> ProgramResult<()>
where R: Rng,
I: Integrator<S>,
H: Hamiltonian<S>,
S: Spin;
}Expand description
A program is a sequence of steps that can be run on a system.
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.