Skip to main content

Instantiator

Trait Instantiator 

Source
pub trait Instantiator<'a>:
    RefUnwindSafe
    + Fn() -> CompiledSimInstance<'a>
    + Sealed<'a> { }
Available on stageleft_runtime and crate feature sim 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.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

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