pub struct SectionInfo {
pub name: String,
pub address: u32,
pub size: u32,
pub flags: u32,
pub region: RegionType,
}Expand description
Information about a single ELF section.
Fields§
§name: StringSection name from the ELF header.
address: u32Virtual address where the section is loaded.
size: u32Section size in bytes.
flags: u32Section flags (SHF_ALLOC, SHF_WRITE, SHF_EXECINSTR, etc.)
region: RegionTypeWhich memory region this section belongs to.
Implementations§
Source§impl SectionInfo
impl SectionInfo
pub fn is_alloc(&self) -> bool
pub fn is_writable(&self) -> bool
pub fn is_executable(&self) -> bool
Trait Implementations§
Source§impl Clone for SectionInfo
impl Clone for SectionInfo
Source§fn clone(&self) -> SectionInfo
fn clone(&self) -> SectionInfo
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SectionInfo
impl Debug for SectionInfo
Auto Trait Implementations§
impl Freeze for SectionInfo
impl RefUnwindSafe for SectionInfo
impl Send for SectionInfo
impl Sync for SectionInfo
impl Unpin for SectionInfo
impl UnsafeUnpin for SectionInfo
impl UnwindSafe for SectionInfo
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more