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

Method get

crates/rust/src/lib.rs:64–69  ·  view source on GitHub ↗
(&self, key: &str)

Source from the content-addressed store, hash-verified

62
63impl GenerationConfiguration {
64 fn get(&self, key: &str) -> Option<&TypeGeneration> {
65 self.map.get(key).or_else(|| {
66 self.generate_by_default
67 .then_some(&TypeGeneration::Generate)
68 })
69 }
70
71 fn insert(&mut self, name: String, generate: TypeGeneration) {
72 self.map.insert(name, generate);

Callers 8

name_interfaceMethod · 0.45
preprocessMethod · 0.45
import_interfaceMethod · 0.45
import_typesMethod · 0.45
type_pathMethod · 0.45
path_to_interfaceMethod · 0.45
infoMethod · 0.45
is_list_canonicalMethod · 0.45

Calls 1

or_elseMethod · 0.80

Tested by

no test coverage detected