#[repr(u32)]pub enum PType {
Null = 0,
Load = 1,
Dynamic = 2,
Interp = 3,
Note = 4,
Shlib = 5,
Phdr = 6,
Tls = 7,
GnuEhFrame = 1_685_382_480,
GnuStack = 1_685_382_481,
GnuRelro = 1_685_382_482,
GnuProperty = 1_685_382_483,
}Expand description
ELF program header type.
This enum represents different segment types in an ELF binary.
Variants§
Null = 0
Unused segment.
Load = 1
Loadable segment.
Dynamic = 2
Dynamic linking information.
Interp = 3
Interpreter path (for dynamically linked executables).
Note = 4
Auxiliary information.
Shlib = 5
Reserved.
Phdr = 6
Program header table itself.
Tls = 7
Thread-Local Storage (TLS) template.
GnuEhFrame = 1_685_382_480
GNU-specific: Exception handling information.
GnuStack = 1_685_382_481
GNU-specific: Stack segment flags.
GnuRelro = 1_685_382_482
GNU-specific: Read-only after relocation.
GnuProperty = 1_685_382_483
GNU-specific.
Trait Implementations§
impl Copy for PType
impl Eq for PType
impl StructuralPartialEq for PType
Auto Trait Implementations§
impl Freeze for PType
impl RefUnwindSafe for PType
impl Send for PType
impl Sync for PType
impl Unpin for PType
impl UnwindSafe for PType
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)