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
Mach-O segment flags.
Fields
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 for SegmentFlags
impl PartialEq 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 ==
.impl Copy for SegmentFlags
impl Eq for SegmentFlags
impl StructuralPartialEq for SegmentFlags
Auto Trait Implementations§
impl Freeze for SegmentFlags
impl RefUnwindSafe for SegmentFlags
impl Send for SegmentFlags
impl Sync for SegmentFlags
impl Unpin for SegmentFlags
impl UnwindSafe for SegmentFlags
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