Struct multiboot2::ElfSectionsTag
source · [−]pub struct ElfSectionsTag { /* private fields */ }
Expand description
This tag contains section header table from an ELF kernel.
The sections iterator is provided via the sections
method.
Implementations
sourceimpl ElfSectionsTag
impl ElfSectionsTag
sourcepub fn sections(&self) -> ElfSectionIterⓘNotable traits for ElfSectionIterimpl Iterator for ElfSectionIter type Item = ElfSection;
pub fn sections(&self) -> ElfSectionIterⓘNotable traits for ElfSectionIterimpl Iterator for ElfSectionIter type Item = ElfSection;
Get an iterator of loaded ELF sections.
Examples
ⓘ
if let Some(elf_tag) = boot_info.elf_sections_tag() {
let mut total = 0;
for section in elf_tag.sections() {
println!("Section: {:?}", section);
total += 1;
}
}
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for ElfSectionsTag
impl !Send for ElfSectionsTag
impl !Sync for ElfSectionsTag
impl Unpin for ElfSectionsTag
impl UnwindSafe for ElfSectionsTag
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more