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

Method interface

crates/c/src/lib.rs:591–605  ·  view source on GitHub ↗
(
        &'a mut self,
        resolve: &'a Resolve,
        in_import: bool,
        wasm_import_module: Option<&'a str>,
    )

Source from the content-addressed store, hash-verified

589
590impl C {
591 fn interface<'a>(
592 &'a mut self,
593 resolve: &'a Resolve,
594 in_import: bool,
595 wasm_import_module: Option<&'a str>,
596 ) -> InterfaceGenerator<'a> {
597 InterfaceGenerator {
598 src: Source::default(),
599 r#gen: self,
600 resolve,
601 interface: None,
602 in_import,
603 wasm_import_module,
604 }
605 }
606
607 fn h_include(&mut self, s: &str) {
608 self.h_includes.push(s.to_string());

Callers 5

import_interfaceMethod · 0.45
import_funcsMethod · 0.45
export_interfaceMethod · 0.45
export_funcsMethod · 0.45
import_typesMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected