fn _new(engine: &Engine, instance: InstanceHandle, trampoline: VMTrampoline) -> Self {
        let idx = EntityIndex::Function(FuncIndex::from_u32(0));
        let export = match instance.lookup_by_declaration(&idx) {
            wasmtime_runtime::Export::Function(f) => f,
            _ => unreachable!(),
        };

        HostFunc {
            instance,
            trampoline,
            export,
            engine: engine.clone(),
        }
    }
/// Requires that this function's signature is already registered within
/// `Engine`. This happens automatically during the above two constructors.
Requires that this function's signature is already registered within
`Engine`. This happens automatically during the above two constructors.
Requires that this function ' s signature is already registered within ` Engine ` . This happens automatically during the above two constructors .
fn _new(engine: &Engine, instance: InstanceHandle, trampoline: VMTrampoline) -> Self {
        let idx = EntityIndex::Function(FuncIndex::from_u32(0));
        let export = match instance.lookup_by_declaration(&idx) {
            wasmtime_runtime::Export::Function(f) => f,
            _ => unreachable!(),
        };
        HostFunc {
            instance,
            trampoline,
            export,
            engine: engine.clone(),
        }
    }
fn _new ( engine : & Engine , instance : InstanceHandle , trampoline : VMTrampoline ) -> Self { let idx = EntityIndex :: Function ( FuncIndex :: from_u32 ( 0 ) ) ; let export = match instance . lookup_by_declaration ( & idx ) { wasmtime_runtime :: Export :: Function ( f ) => f , _ => unreachable ! ( ) , } ; HostFunc { instance , trampoline , export , engine : engine . clone ( ) , } }
Requires that this function's signature is already registered within
`Engine`.
Requires that this function ' s signature is already registered within ` Engine ` .
engine
&Engine
instance
InstanceHandle
trampoline
VMTrampoline
engine
&Engine
instance
InstanceHandle
trampoline
VMTrampoline