Enum object::SegmentFlags
source · [−]#[non_exhaustive]
pub enum SegmentFlags {
None,
Elf {
p_flags: u32,
},
MachO {
flags: u32,
maxprot: u32,
initprot: u32,
},
Coff {
characteristics: u32,
},
}Expand description
Segment flags that are specific to each file format.
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
None
No segment flags.
Elf
Fields
p_flags: u32p_flags field in the segment header.
ELF segment flags.
MachO
Fields
flags: u32flags field in the segment header.
maxprot: u32maxprot field in the segment header.
initprot: u32initprot field in the segment header.
Mach-O segment flags.
Coff
Fields
characteristics: u32Characteristics field in the segment header.
COFF segment flags.
Trait Implementations
This method tests for self and other values to be equal, and is used
by ==. Read more
This method tests for !=.
Auto Trait Implementations
impl RefUnwindSafe for SegmentFlags
impl Send for SegmentFlags
impl Sync for SegmentFlags
impl Unpin for SegmentFlags
impl UnwindSafe for SegmentFlags
Blanket Implementations
Mutably borrows from an owned value. Read more
Compare self to key and return true if they are equal.