MCPcopy Create free account
hub / github.com/bytecodealliance/wit-bindgen / export_funcs

Method export_funcs

crates/go/src/lib.rs:826–838  ·  view source on GitHub ↗
(
        &mut self,
        resolve: &Resolve,
        _world: WorldId,
        funcs: &[(&str, &Function)],
        _files: &mut Files,
    )

Source from the content-addressed store, hash-verified

824 }
825
826 fn export_funcs(
827 &mut self,
828 resolve: &Resolve,
829 _world: WorldId,
830 funcs: &[(&str, &Function)],
831 _files: &mut Files,
832 ) -> Result<()> {
833 for (_, func) in funcs {
834 let code = self.export(resolve, func, None);
835 self.src.push_str(&code);
836 }
837 Ok(())
838 }
839
840 fn import_types(
841 &mut self,

Callers

nothing calls this directly

Calls 2

exportMethod · 0.45
push_strMethod · 0.45

Tested by

no test coverage detected