#[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.
Fields
§
p_flags: u32
p_flags
field in the segment header.
MachO
Mach-O segment flags.
Fields
§
flags: u32
flags
field in the segment header.
§
maxprot: u32
maxprot
field in the segment header.
§
initprot: u32
initprot
field in the segment header.
Coff
COFF segment flags.
Fields
§
characteristics: u32
Characteristics
field in the segment header.
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§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
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§
§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, dst: *mut u8)
unsafe fn clone_to_uninit(&self, dst: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)