Function add_to_linker

Source
pub fn add_to_linker<T: 'static>(
    l: &mut Linker<T>,
    f: fn(&mut T) -> WasiNnView<'_>,
) -> Result<()>
Expand description

Add the WIT-based version of the wasi-nn API to a [wasmtime::component::Linker].