pub struct Section { /* private fields */ }Expand description
The Section type.
Implementations§
Source§impl Section
impl Section
Sourcepub const fn segment_name(&self) -> &SegmentName
pub const fn segment_name(&self) -> &SegmentName
Fixed-width containing segment name.
Sourcepub const fn section_name(&self) -> &SectionName
pub const fn section_name(&self) -> &SectionName
Fixed-width section name.
Sourcepub const fn offset(&self) -> ThinFileOffset
pub const fn offset(&self) -> ThinFileOffset
Slice-relative file offset.
Sourcepub const fn relocation_offset(&self) -> ThinFileOffset
pub const fn relocation_offset(&self) -> ThinFileOffset
Slice-relative relocation-table offset.
Sourcepub const fn relocation_count(&self) -> u32
pub const fn relocation_count(&self) -> u32
Number of relocation records.
Sourcepub const fn section_type(&self) -> SectionType
pub const fn section_type(&self) -> SectionType
Decoded section type.
Sourcepub const fn attributes(&self) -> SectionAttributes
pub const fn attributes(&self) -> SectionAttributes
Parsed section attributes.
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 UnsafeUnpin 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