Skip to main content

MachoExt

Trait MachoExt 

Source
pub trait MachoExt<'data>: Sized {
    type Error;

    // Required method
    fn parse<'mf>(macho: &'mf MachoFile<'data>) -> Result<Self, Self::Error>
       where 'data: 'mf;
}
Expand description

Extension trait for layering domain-specific analysis on top of MachFile.

Extensions are transient borrowed views. Compute what you need and let them drop when the derived view is no longer needed.

Required Associated Types§

Source

type Error

The Error associated type.

Required Methods§

Source

fn parse<'mf>(macho: &'mf MachoFile<'data>) -> Result<Self, Self::Error>
where 'data: 'mf,

Performs parse.

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§

Source§

impl<'data> MachoExt<'data> for ObjCMetadata

Source§

impl<'data> MachoExt<'data> for SymbolTable<'data>