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

Method generate_imports

crates/rust/src/interface.rs:354–362  ·  view source on GitHub ↗
(
        &mut self,
        funcs: impl Iterator<Item = &'a Function>,
        interface: Option<&WorldKey>,
    )

Source from the content-addressed store, hash-verified

352 }
353
354 pub fn generate_imports<'a>(
355 &mut self,
356 funcs: impl Iterator<Item = &'a Function>,
357 interface: Option<&WorldKey>,
358 ) {
359 for func in funcs {
360 self.generate_guest_import(func, interface);
361 }
362 }
363
364 pub fn align_area(&mut self, alignment: Alignment) {
365 match alignment {

Callers 2

import_interfaceMethod · 0.80
import_funcsMethod · 0.80

Calls 1

generate_guest_importMethod · 0.80

Tested by

no test coverage detected