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