We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7f858b1 commit 1272d85Copy full SHA for 1272d85
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<'b: 'a>(&'b mut self) -> Option<&'b 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