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 2b62224 commit 4f56978Copy full SHA for 4f56978
multiboot2/src/lib.rs
@@ -519,6 +519,11 @@ impl<T: AsRef<BootInformationInner> + AsMut<BootInformationInner>> BootInformati
519
self.get_tag_mut::<MemoryMapTag, _>(TagType::Mmap)
520
}
521
522
+ /// Search for the basic memory info tag, return a mutable reference.
523
+ pub fn basic_memory_info_tag_mut(&mut self) -> Option<&mut BasicMemoryInfoTag> {
524
+ self.get_tag_mut::<BasicMemoryInfoTag, _>(TagType::BasicMeminfo)
525
+ }
526
+
527
fn get_tag_mut<TagT: TagTrait + ?Sized, TagType: Into<TagTypeId>>(
528
&mut self,
529
typ: TagType,
0 commit comments