object::read::pe

Trait ImageThunkData

Source
pub trait ImageThunkData: Debug + Pod {
    // Required methods
    fn raw(self) -> u64;
    fn is_ordinal(self) -> bool;
    fn ordinal(self) -> u16;
    fn address(self) -> u32;
}
Expand description

A trait for generic access to pe::ImageThunkData32 and pe::ImageThunkData64.

Required Methods§

Source

fn raw(self) -> u64

Return the raw thunk value.

Source

fn is_ordinal(self) -> bool

Returns true if the ordinal flag is set.

Source

fn ordinal(self) -> u16

Return the ordinal portion of the thunk.

Does not check the ordinal flag.

Source

fn address(self) -> u32

Return the RVA portion of the thunk.

Does not check the ordinal flag.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§