We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2c9f744 commit 2b385a0Copy full SHA for 2b385a0
multiboot2/src/lib.rs
@@ -515,6 +515,11 @@ impl<T: AsRef<BootInformationInner> + AsMut<BootInformationInner>> BootInformati
515
self.get_tag_mut::<MemoryMapTag, _>(TagType::Mmap)
516
}
517
518
+ /// Search for the basic memory info tag, return a mutable reference.
519
+ pub fn basic_memory_info_tag_mut(&mut self) -> Option<&mut BasicMemoryInfoTag> {
520
+ self.get_tag_mut::<BasicMemoryInfoTag, _>(TagType::BasicMeminfo)
521
+ }
522
+
523
fn get_tag_mut<TagT: TagTrait + ?Sized, TagType: Into<TagTypeId>>(
524
&mut self,
525
typ: TagType,
0 commit comments