Instantiator

Trait Instantiator 

Source
pub trait Instantiator<'a>:
    RefUnwindSafe
    + Fn() -> CompiledSimInstance<'a>
    + Sealed<'a> { }
Available on crate feature sim and stageleft_runtime only.
Expand description

A trait implemented by closures that can instantiate a compiled simulation.

This is needed to ensure RefUnwindSafe so instances can be created during fuzzing.

Implementors§

Source§

impl<'a, T: RefUnwindSafe + Fn() -> CompiledSimInstance<'a>> Instantiator<'a> for T