pub struct AuxiliarySectionDefinition<'a> { /* private fields */ }
Expand description

This auxiliary symbol exposes information about the associated section.

It duplicates some information that are provided in the section header

Implementations§

§

impl AuxiliarySectionDefinition<'_>

pub fn length(&self) -> u32

The size of section data. The same as SizeOfRawData in the section header.

pub fn nb_relocs(&self) -> u16

The number of relocation entries for the section.

pub fn nb_line_numbers(&self) -> u16

The number of line-number entries for the section.

pub fn checksum(&self) -> u32

The checksum for communal data. It is applicable if the IMAGE_SCN_LNK_COMDAT flag is set in the section header.

pub fn section_idx(&self) -> u16

One-based index into the section table for the associated section. This is used when the COMDAT selection setting is 5.

pub fn selection(&self) -> u8

The COMDAT selection number. This is applicable if the section is a COMDAT section.

Trait Implementations§

§

impl Debug for AuxiliarySectionDefinition<'_>

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

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

source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.