MCPcopy Index your code
hub / github.com/explodingcamera/tinywasm / fmt

Method fmt

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

Source from the content-addressed store, hash-verified

336#[cfg(feature = "debug")]
337impl core::fmt::Debug for MemoryBackend {
338 fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result {
339 match &self.kind {
340 MemoryBackendKind::Vec => f.debug_tuple("MemoryBackend::Vec").finish(),
341 MemoryBackendKind::Paged { chunk_size } => {
342 f.debug_struct("MemoryBackend::Paged").field("chunk_size", chunk_size).finish()
343 }
344 MemoryBackendKind::Custom(_) => f.debug_tuple("MemoryBackend::Custom").finish(),
345 }
346 }
347}
348
349pub(crate) struct MemoryStorage(Box<dyn LinearMemory>);

Callers

nothing calls this directly

Calls 1

finishMethod · 0.80

Tested by

no test coverage detected