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