pub trait NativeVmExtension: Clone {
type Instance: VmInvoke + Clone;
// Required method
fn try_create_instance(&self, code: &[u8]) -> Option<Self::Instance>;
}
Required Associated Types§
Required Methods§
fn try_create_instance(&self, code: &[u8]) -> Option<Self::Instance>
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.