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
ELF segment flags.
MachO
Fields
Mach-O segment flags.
Coff
COFF segment flags.
Trait Implementations§
source§impl Clone for SegmentFlags
impl Clone for SegmentFlags
source§fn clone(&self) -> SegmentFlags
fn clone(&self) -> SegmentFlags
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 SegmentFlags
impl Debug for SegmentFlags
source§impl Hash for SegmentFlags
impl Hash for SegmentFlags
source§impl PartialEq<SegmentFlags> for SegmentFlags
impl PartialEq<SegmentFlags> for SegmentFlags
source§fn eq(&self, other: &SegmentFlags) -> bool
fn eq(&self, other: &SegmentFlags) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.