Trait BinaryFormatTrait

Source
pub trait BinaryFormatTrait: Send + Sync {
    // Required methods
    fn format_type(&self) -> BinaryFormat;
    fn architecture(&self) -> Architecture;
    fn entry_point(&self) -> Option<u64>;
    fn sections(&self) -> &[Section];
    fn symbols(&self) -> &[Symbol];
    fn imports(&self) -> &[Import];
    fn exports(&self) -> &[Export];
    fn metadata(&self) -> &BinaryMetadata;
}
Expand description

Trait implemented by all binary formats

Required Methods§

Source

fn format_type(&self) -> BinaryFormat

Get format type

Source

fn architecture(&self) -> Architecture

Get target architecture

Source

fn entry_point(&self) -> Option<u64>

Get entry point

Source

fn sections(&self) -> &[Section]

Get sections

Source

fn symbols(&self) -> &[Symbol]

Get symbols

Source

fn imports(&self) -> &[Import]

Get imports

Source

fn exports(&self) -> &[Export]

Get exports

Source

fn metadata(&self) -> &BinaryMetadata

Get metadata

Implementors§