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 8b3dfe4 commit 745e911Copy full SHA for 745e911
multiboot2/src/lib.rs
@@ -285,9 +285,13 @@ impl<'a> BootInformation<'a> {
285
self.get_tag::<BasicMemoryInfoTag, _>(TagType::BasicMeminfo)
286
}
287
288
+ /// Search for the basic memory info tag, return a mutable reference.
289
+ pub fn basic_memory_info_tag_mut(&'a mut self) -> Option<&'a mut BasicMemoryInfoTag> {
290
+ self.get_tag_mut::<BasicMemoryInfoTag, _>(TagType::BasicMeminfo)
291
+ }
292
+
293
/// Returns an [`ElfSectionIter`] iterator over the ELF Sections, if the
294
/// [`ElfSectionsTag`] is present.
- ///
295
/// # Examples
296
///
297
/// ```rust,no_run
0 commit comments