We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ca33794 commit f610213Copy full SHA for f610213
multiboot2/src/lib.rs
@@ -520,6 +520,11 @@ impl<T: AsRef<BootInformationInner> + AsMut<BootInformationInner>> BootInformati
520
self.get_tag_mut::<MemoryMapTag, _>(TagType::Mmap)
521
}
522
523
+ /// Search for the basic memory info tag, return a mutable reference.
524
+ pub fn basic_memory_info_tag_mut(&mut self) -> Option<&mut BasicMemoryInfoTag> {
525
+ self.get_tag_mut::<BasicMemoryInfoTag, _>(TagType::BasicMeminfo)
526
+ }
527
+
528
fn get_tag_mut<TagT: TagTrait + ?Sized, TagType: Into<TagTypeId>>(
529
&mut self,
530
typ: TagType,
0 commit comments