pub enum SegmentKind {
Null,
Loadable,
Dynamic,
Interpreter,
Note,
Shlib,
ProgramHeader,
Tls,
Other(u32),
}
Expand description
Segment type.
Variants§
Null
Inactive/removed segment.
Loadable
A segment that is mapped from the file into memory segment on program execution.
Dynamic
A segment that contains dynamic linking information.
Interpreter
A segment that contains NUL-terminated interpreter path.
Note
A segment that contains notes.
Shlib
Reserved.
ProgramHeader
A segment that contains program header itself.
Tls
A segment that contains thread-local storage.
Other(u32)
Other.
Implementations§
Trait Implementations§
Source§impl Clone for SegmentKind
impl Clone for SegmentKind
Source§fn clone(&self) -> SegmentKind
fn clone(&self) -> SegmentKind
Returns a duplicate 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 SegmentKind
impl Debug for SegmentKind
Source§impl From<u32> for SegmentKind
impl From<u32> for SegmentKind
Source§impl Hash for SegmentKind
impl Hash for SegmentKind
Source§impl Ord for SegmentKind
impl Ord for SegmentKind
Source§fn cmp(&self, other: &SegmentKind) -> Ordering
fn cmp(&self, other: &SegmentKind) -> 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 SegmentKind
impl PartialEq for SegmentKind
Source§impl PartialOrd for SegmentKind
impl PartialOrd for SegmentKind
impl Copy for SegmentKind
impl Eq for SegmentKind
impl StructuralPartialEq for SegmentKind
Auto Trait Implementations§
impl Freeze for SegmentKind
impl RefUnwindSafe for SegmentKind
impl Send for SegmentKind
impl Sync for SegmentKind
impl Unpin for SegmentKind
impl UnwindSafe for SegmentKind
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