| 336 | #[cfg(feature = "debug")] |
| 337 | impl 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 | |
| 349 | pub(crate) struct MemoryStorage(Box<dyn LinearMemory>); |