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

The section contains executable code.

The section contains initialized data.

The section contains uninitialized data.

Reserved.

The section contains comments or other information. This is valid only for object files.

The section will not become part of the image. This is valid only for object files.

The section contains COMDAT data. This is valid only for object files.

Reset speculative exceptions handling bits in the TLB entries for this section.

The section contains data referenced through the global pointer.

Reserved.

Reserved.

Reserved.

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.

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.

The section can be discarded as needed.

The section cannot be cached.

The section cannot be paged.

The section can be shared in memory.

The section can be executed as code.

The section can be read.

The section can be written to.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.