(&self, f: &mut core::fmt::Formatter<'_>)
| 112 | #[cfg(feature = "debug")] |
| 113 | impl 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 | |
| 124 | impl LinearMemory for PagedMemory { |