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

Method remove

crates/core/src/source.rs:27–29  ·  view source on GitHub ↗
(&mut self, name: &str)

Source from the content-addressed store, hash-verified

25 }
26
27 pub fn remove(&mut self, name: &str) -> Option<Vec<u8>> {
28 self.files.remove(name)
29 }
30
31 pub fn iter(&self) -> impl Iterator<Item = (&'_ str, &'_ [u8])> {
32 self.files.iter().map(|p| (p.0.as_str(), p.1.as_slice()))

Callers 6

export_interfaceMethod · 0.80
emitMethod · 0.80
generate_exportsMethod · 0.80
generate_stubMethod · 0.80
waitable_unregisterFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected