pub struct Section { /* private fields */ }
Expand description
A section definition.
Implementations§
Source§impl Section
impl Section
Sourcepub fn name(&self) -> &[u8] ⓘ
pub fn name(&self) -> &[u8] ⓘ
The section’s name. As with all names pulled from object files, this is not guaranteed to be valid UTF-8.
Sourcepub fn source(&self) -> Option<(u32, u32)>
pub fn source(&self) -> Option<(u32, u32)>
Where the section has been defined.
That is, the file stack node ID, and the line number.
This is None
for object files prior to v9 r11.
Sourcepub fn type_data(&self) -> &SectionType
pub fn type_data(&self) -> &SectionType
The section’s memory type, including data, if any.
Sourcepub fn modifier(&self) -> SectionMod
pub fn modifier(&self) -> SectionMod
The section’s modifier (regular, union, etc.).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Section
impl RefUnwindSafe for Section
impl Send for Section
impl Sync for Section
impl Unpin for Section
impl UnwindSafe for Section
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