Add getter method to QemuMappingsViewer (#2973)

This commit is contained in:
Dongjia "toka" Zhang 2025-02-12 18:34:24 +01:00 committed by GitHub
parent cb3abf27a3
commit 0736c56647
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -41,6 +41,11 @@ impl<'a> QemuMappingsViewer<'a> {
}
self.mappings = mappings;
}
#[must_use]
pub fn mappings(&self) -> &[MapInfo] {
&self.mappings
}
}
impl core::fmt::Debug for QemuMappingsViewer<'_> {