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

Method interface

crates/cpp/src/lib.rs:316–336  ·  view source on GitHub ↗
(
        &'a mut self,
        resolve: &'a Resolve,
        name: Option<&'a WorldKey>,
        in_guest_import: bool,
        wasm_import_module: Option<String>,
    )

Source from the content-addressed store, hash-verified

314 }
315
316 fn interface<'a>(
317 &'a mut self,
318 resolve: &'a Resolve,
319 name: Option<&'a WorldKey>,
320 in_guest_import: bool,
321 wasm_import_module: Option<String>,
322 ) -> CppInterfaceGenerator<'a> {
323 let mut sizes = SizeAlign::default();
324 sizes.fill(resolve);
325
326 CppInterfaceGenerator {
327 _src: Source::default(),
328 r#gen: self,
329 resolve,
330 interface: None,
331 _name: name,
332 sizes,
333 in_guest_import,
334 wasm_import_module,
335 }
336 }
337
338 fn clang_format(code: &mut String) {
339 let mut child = Command::new("clang-format")

Callers 5

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

Calls

no outgoing calls

Tested by

no test coverage detected