Struct multiboot2::ElfSection
source · [−]pub struct ElfSection { /* private fields */ }
Expand description
A single generic ELF Section.
Implementations
sourceimpl ElfSection
impl ElfSection
sourcepub fn section_type(&self) -> ElfSectionType
pub fn section_type(&self) -> ElfSectionType
Get the section type as a ElfSectionType
enum variant.
sourcepub fn section_type_raw(&self) -> u32
pub fn section_type_raw(&self) -> u32
Get the “raw” section type as a u32
sourcepub fn start_address(&self) -> u64
pub fn start_address(&self) -> u64
Get the physical start address of the section.
sourcepub fn end_address(&self) -> u64
pub fn end_address(&self) -> u64
Get the physical end address of the section.
This is the same as doing section.start_address() + section.size()
sourcepub fn addralign(&self) -> u64
pub fn addralign(&self) -> u64
Get the section’s address alignment constraints.
That is, the value of start_address
must be congruent to 0,
modulo the value of addrlign
. Currently, only 0 and positive
integral powers of two are allowed. Values 0 and 1 mean the section has no
alignment constraints.
sourcepub fn flags(&self) -> ElfSectionFlags
pub fn flags(&self) -> ElfSectionFlags
Get the section’s flags.
sourcepub fn is_allocated(&self) -> bool
pub fn is_allocated(&self) -> bool
Check if the ALLOCATED
flag is set in the section flags.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for ElfSection
impl !Send for ElfSection
impl !Sync for ElfSection
impl Unpin for ElfSection
impl UnwindSafe for ElfSection
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