MCPcopy Create free account
hub / github.com/explodingcamera/tinywasm / with_inner_mut

Method with_inner_mut

crates/tinywasm/src/store/memory/lazy.rs:47–51  ·  view source on GitHub ↗
(&self, f: impl FnOnce(&mut dyn LinearMemory) -> R)

Source from the content-addressed store, hash-verified

45 }
46
47 fn with_inner_mut<R>(&self, f: impl FnOnce(&mut dyn LinearMemory) -> R) -> R {
48 self.ensure_materialized();
49 let mut inner = self.inner.borrow_mut();
50 f(inner.as_deref_mut().expect("lazy memory should be materialized"))
51 }
52
53 fn try_with_inner_mut<R>(
54 &self,

Callers 4

writeMethod · 0.80
write_allMethod · 0.80
fillMethod · 0.80
copy_withinMethod · 0.80

Calls 1

ensure_materializedMethod · 0.80

Tested by

no test coverage detected