Skip to main content

spawn_machine

Function spawn_machine 

Source
pub fn spawn_machine<L: Language + ?Sized>(
    lang_name: &str,
    lang: &L,
) -> Result<Box<dyn Machine>>
Expand description

Spawn the best machine a Language declares: its native_machine when it has one, else the persistent ReplMachine when the language has a repl_spec, else the replay-based ScriptMachine from its machine_spec, else an error. Shared by Multi and the conformance battery, so the machine a claim is verified against is the machine users get.