#[repr(usize)]pub enum SegmentName {
Textx = 0,
Idata = 1,
Rdata = 2,
Data = 3,
Pdata = 4,
Tls = 5,
Textw = 6,
Gfids = 7,
}
Expand description
Represents different sections in a binary executable.
Variants§
Textx = 0
Executable code section (typically .text
).
Idata = 1
Initialized data section (typically .idata
).
Rdata = 2
Read-only data section (typically .rdata
).
Data = 3
Writable data section (typically .data
).
Pdata = 4
Exception handling metadata section (typically .pdata
).
Tls = 5
Thread-local storage section (typically .tls
).
Textw = 6
Writable text section (uncommon, but may exist for self-modifying code).
Gfids = 7
Global function identifiers section (typically .gfids
).
Trait Implementations§
Source§impl Clone for SegmentName
impl Clone for SegmentName
Source§fn clone(&self) -> SegmentName
fn clone(&self) -> SegmentName
Returns a copy of the value. Read more
1.0.0 · 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 SegmentName
impl Debug for SegmentName
Source§impl Default for SegmentName
impl Default for SegmentName
Source§fn default() -> SegmentName
fn default() -> SegmentName
Returns the “default value” for a type. Read more
Source§impl Hash for SegmentName
impl Hash for SegmentName
Source§impl Ord for SegmentName
impl Ord for SegmentName
Source§fn cmp(&self, other: &SegmentName) -> Ordering
fn cmp(&self, other: &SegmentName) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for SegmentName
impl PartialEq for SegmentName
Source§impl PartialOrd for SegmentName
impl PartialOrd for SegmentName
impl Copy for SegmentName
impl Eq for SegmentName
impl StructuralPartialEq for SegmentName
Auto Trait Implementations§
impl Freeze for SegmentName
impl RefUnwindSafe for SegmentName
impl Send for SegmentName
impl Sync for SegmentName
impl Unpin for SegmentName
impl UnwindSafe for SegmentName
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