Skip to main content

UniversalCompilationProperties

Trait UniversalCompilationProperties 

Source
pub trait UniversalCompilationProperties {
    // Required methods
    fn binary_type(&self) -> &str;
    fn is_stripped(&self) -> bool;
    fn compiler_runtime(&self, bytes: &[u8]) -> Option<String>;
}
Expand description

Compilation properties we assess on every binary format we support.

Required Methods§

Source

fn binary_type(&self) -> &str

Source

fn is_stripped(&self) -> bool

Source

fn compiler_runtime(&self, bytes: &[u8]) -> Option<String>

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl UniversalCompilationProperties for Elf<'_>

Source§

fn binary_type(&self) -> &str

Source§

fn is_stripped(&self) -> bool

Source§

fn compiler_runtime(&self, bytes: &[u8]) -> Option<String>

Source§

impl UniversalCompilationProperties for MachO<'_>

Source§

fn binary_type(&self) -> &str

Source§

fn is_stripped(&self) -> bool

Source§

fn compiler_runtime(&self, _bytes: &[u8]) -> Option<String>

Source§

impl UniversalCompilationProperties for PE<'_>

Source§

fn binary_type(&self) -> &str

Source§

fn is_stripped(&self) -> bool

Source§

fn compiler_runtime(&self, _bytes: &[u8]) -> Option<String>

Implementors§