pub trait Optional: Sized {
// Required methods
fn get_subsystem(&self) -> Option<Subsystem>;
fn get_dll_characteristics(&self) -> Option<DLLCharacteristics>;
fn parse_optional_header(
binary: &[u8],
offset: &mut usize,
) -> Result<Self, Error>;
}
Expand description
Helper functions for optional header structs
Required Methods§
Sourcefn get_subsystem(&self) -> Option<Subsystem>
fn get_subsystem(&self) -> Option<Subsystem>
Returns the subsystem as an enum
Sourcefn get_dll_characteristics(&self) -> Option<DLLCharacteristics>
fn get_dll_characteristics(&self) -> Option<DLLCharacteristics>
Returns the DLL Characteristics as bitflags
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.