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

Method path_from_runtime_module

crates/rust/src/interface.rs:2625–2638  ·  view source on GitHub ↗
(
        &mut self,
        item: RuntimeItem,
        name_in_runtime_module: &str,
    )

Source from the content-addressed store, hash-verified

2623 }
2624
2625 fn path_from_runtime_module(
2626 &mut self,
2627 item: RuntimeItem,
2628 name_in_runtime_module: &str,
2629 ) -> String {
2630 self.needs_runtime_module = true;
2631 self.r#gen.rt_module.insert(item);
2632 let prefix = if let Identifier::StreamOrFuturePayload = &self.identifier {
2633 "super::super::"
2634 } else {
2635 ""
2636 };
2637 format!("{prefix}_rt::{name_in_runtime_module}")
2638 }
2639
2640 pub fn is_list_canonical(&self, ty: &Type) -> bool {
2641 if !self.resolve.all_bits_valid(ty) {

Callers 15

path_to_resourceMethod · 0.80
path_to_wasm_resourceMethod · 0.80
path_to_string_liftMethod · 0.80
path_to_cabi_deallocMethod · 0.80
path_to_as_i32Method · 0.80
path_to_as_i64Method · 0.80
path_to_as_f32Method · 0.80
path_to_as_f64Method · 0.80
path_to_char_liftMethod · 0.80
path_to_bool_liftMethod · 0.80

Calls 1

insertMethod · 0.45

Tested by

no test coverage detected