Trait object::read::macho::FatArch[][src]

pub trait FatArch: Pod {
    type Word: Into<u64>;
    fn cputype(&self) -> u32;
fn cpusubtype(&self) -> u32;
fn offset(&self) -> Self::Word;
fn size(&self) -> Self::Word;
fn align(&self) -> u32; fn architecture(&self) -> Architecture { ... }
fn data<'data>(&self, file: &'data [u8]) -> Result<&'data [u8]> { ... } }

A trait for generic access to FatArch32 and FatArch64.

Associated Types

type Word: Into<u64>[src]

Loading content...

Required methods

fn cputype(&self) -> u32[src]

fn cpusubtype(&self) -> u32[src]

fn offset(&self) -> Self::Word[src]

fn size(&self) -> Self::Word[src]

fn align(&self) -> u32[src]

Loading content...

Provided methods

fn architecture(&self) -> Architecture[src]

fn data<'data>(&self, file: &'data [u8]) -> Result<&'data [u8]>[src]

Loading content...

Implementors

impl FatArch for FatArch32[src]

type Word = u32

impl FatArch for FatArch64[src]

type Word = u64

Loading content...