Struct pdb::SectionCharacteristics
source · [−]pub struct SectionCharacteristics(pub u32);
Expand description
Characteristic flags of an ImageSectionHeader
.
These are defined by Microsoft as IMAGE_SCN_
constants.
Tuple Fields
0: u32
Implementations
sourceimpl SectionCharacteristics
impl SectionCharacteristics
sourcepub fn executable(self) -> bool
pub fn executable(self) -> bool
The section contains executable code.
sourcepub fn initialized_data(self) -> bool
pub fn initialized_data(self) -> bool
The section contains initialized data.
sourcepub fn uninitialized_data(self) -> bool
pub fn uninitialized_data(self) -> bool
The section contains uninitialized data.
sourcepub fn info(self) -> bool
pub fn info(self) -> bool
The section contains comments or other information. This is valid only for object files.
sourcepub fn remove(self) -> bool
pub fn remove(self) -> bool
The section will not become part of the image. This is valid only for object files.
sourcepub fn comdat(self) -> bool
pub fn comdat(self) -> bool
The section contains COMDAT data. This is valid only for object files.
sourcepub fn defer_speculative_exceptions(self) -> bool
pub fn defer_speculative_exceptions(self) -> bool
Reset speculative exceptions handling bits in the TLB entries for this section.
sourcepub fn global_pointer_relative(self) -> bool
pub fn global_pointer_relative(self) -> bool
The section contains data referenced through the global pointer.
sourcepub fn alignment(self) -> Option<u16>
pub fn alignment(self) -> Option<u16>
Alignment for section data.
This is valid only for object files. Returns Some
if alignment is specified, and None
if
no alignment is specified. An alignment of Some(1)
means that the section should not be
padded to a boundary.
sourcepub fn lnk_nreloc_ovfl(self) -> bool
pub fn lnk_nreloc_ovfl(self) -> bool
The section contains extended relocations.
The count of relocations for the section exceeds the 16 bits that is reserved for it in the
section header. If the number_of_relocations
field in the section header is 0xffff
, the actual relocation count is stored in the
virtual_address
field of the first relocation. It is an error if this flag is set and
there are fewer than 0xffff
relocations in the section.
sourcepub fn discardable(self) -> bool
pub fn discardable(self) -> bool
The section can be discarded as needed.
sourcepub fn not_cached(self) -> bool
pub fn not_cached(self) -> bool
The section cannot be cached.
The section can be shared in memory.
Trait Implementations
sourceimpl Clone for SectionCharacteristics
impl Clone for SectionCharacteristics
sourcefn clone(&self) -> SectionCharacteristics
fn clone(&self) -> SectionCharacteristics
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 SectionCharacteristics
impl Debug for SectionCharacteristics
sourceimpl Default for SectionCharacteristics
impl Default for SectionCharacteristics
sourcefn default() -> SectionCharacteristics
fn default() -> SectionCharacteristics
Returns the “default value” for a type. Read more
sourceimpl PartialEq<SectionCharacteristics> for SectionCharacteristics
impl PartialEq<SectionCharacteristics> for SectionCharacteristics
sourcefn eq(&self, other: &SectionCharacteristics) -> bool
fn eq(&self, other: &SectionCharacteristics) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &SectionCharacteristics) -> bool
fn ne(&self, other: &SectionCharacteristics) -> bool
This method tests for !=
.
sourceimpl<'t> TryFromCtx<'t, Endian, [u8]> for SectionCharacteristics
impl<'t> TryFromCtx<'t, Endian, [u8]> for SectionCharacteristics
impl Copy for SectionCharacteristics
impl Eq for SectionCharacteristics
impl StructuralEq for SectionCharacteristics
impl StructuralPartialEq for SectionCharacteristics
Auto Trait Implementations
impl RefUnwindSafe for SectionCharacteristics
impl Send for SectionCharacteristics
impl Sync for SectionCharacteristics
impl Unpin for SectionCharacteristics
impl UnwindSafe for SectionCharacteristics
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