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

Method fmt

crates/tinywasm/src/store/memory/paged.rs:114–121  ·  view source on GitHub ↗
(&self, f: &mut core::fmt::Formatter<'_>)

Source from the content-addressed store, hash-verified

112#[cfg(feature = "debug")]
113impl core::fmt::Debug for PagedMemory {
114 fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result {
115 let allocated_chunks = self.chunks.iter().filter(|chunk| chunk.is_some()).count();
116 f.debug_struct("PagedMemory")
117 .field("len", &self.len)
118 .field("chunk_size", &self.chunk_size)
119 .field("allocated_chunks", &allocated_chunks)
120 .finish()
121 }
122}
123
124impl LinearMemory for PagedMemory {

Callers

nothing calls this directly

Calls 1

finishMethod · 0.80

Tested by

no test coverage detected