Struct pe_parser::optional::data_directory
source · #[repr(C)]pub struct data_directory {
pub virtual_address: u32,
pub size: u32,
}Expand description
Each data directory gives the address and size of a table or string that Windows uses. These data directory entries are all loaded into memory so that the system can use them at run time. A data directory is an 8-byte field that has the following declaration:
Fields§
§virtual_address: u32RVA of the table. The RVA is the address of the table relative to the base address of the image when the table is loaded.
size: u32Size of the table in bytes.
Trait Implementations§
source§impl Clone for data_directory
impl Clone for data_directory
source§fn clone(&self) -> data_directory
fn clone(&self) -> data_directory
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Default for data_directory
impl Default for data_directory
source§fn default() -> data_directory
fn default() -> data_directory
Returns the “default value” for a type. Read more
impl Copy for data_directory
impl Pod for data_directory
Auto Trait Implementations§
impl RefUnwindSafe for data_directory
impl Send for data_directory
impl Sync for data_directory
impl Unpin for data_directory
impl UnwindSafe for data_directory
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
impl<T> CheckedBitPattern for Twhere T: AnyBitPattern,
§type Bits = T
type Bits = T
Self must have the same layout as the specified Bits except for
the possible invalid bit patterns being checked during
is_valid_bit_pattern.source§fn is_valid_bit_pattern(_bits: &T) -> bool
fn is_valid_bit_pattern(_bits: &T) -> bool
If this function returns true, then it must be valid to reinterpret
bits
as &Self.