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: u32
p_flags
field in the segment header.
ELF segment flags.
MachO
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.
Mach-O segment flags.
Coff
Fields
characteristics: u32
Characteristics
field in the segment header.
COFF segment flags.
Trait Implementations
sourceimpl Clone for SegmentFlags
impl Clone for SegmentFlags
sourcefn clone(&self) -> SegmentFlags
fn clone(&self) -> SegmentFlags
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for SegmentFlags
impl Debug for SegmentFlags
sourceimpl Hash for SegmentFlags
impl Hash for SegmentFlags
sourceimpl PartialEq<SegmentFlags> for SegmentFlags
impl PartialEq<SegmentFlags> for SegmentFlags
sourcefn 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 ==
. Read more
sourcefn ne(&self, other: &SegmentFlags) -> bool
fn ne(&self, other: &SegmentFlags) -> bool
This method tests for !=
.
impl Copy for SegmentFlags
impl Eq for SegmentFlags
impl StructuralEq for SegmentFlags
impl StructuralPartialEq for SegmentFlags
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more