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

Method start_append_submodule

crates/rust/src/interface.rs:433–442  ·  view source on GitHub ↗
(&mut self, name: &WorldKey)

Source from the content-addressed store, hash-verified

431 }
432
433 pub fn start_append_submodule(&mut self, name: &WorldKey) -> (String, Vec<String>) {
434 let snake = match name {
435 WorldKey::Name(name) => to_rust_ident(name),
436 WorldKey::Interface(id) => {
437 to_rust_ident(self.resolve.interfaces[*id].name.as_ref().unwrap())
438 }
439 };
440 let module_path = crate::compute_module_path(name, &self.resolve, !self.in_import);
441 (snake, module_path)
442 }
443
444 pub fn finish_append_submodule(mut self, snake: &str, module_path: Vec<String>, docs: &Docs) {
445 let module = self.finish();

Callers 2

import_interfaceMethod · 0.80
export_interfaceMethod · 0.80

Calls 2

to_rust_identFunction · 0.85
compute_module_pathFunction · 0.85

Tested by

no test coverage detected