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

pub trait Nlist: Debug + Pod {
    type Word: Into<u64>;
    type Endian: Endian;
    fn n_strx(&self, endian: Self::Endian) -> u32;
fn n_type(&self) -> u8;
fn n_sect(&self) -> u8;
fn n_desc(&self, endian: Self::Endian) -> u16;
fn n_value(&self, endian: Self::Endian) -> Self::Word; fn name<'data>(
        &self,
        endian: Self::Endian,
        strings: StringTable<'data>
    ) -> Result<&'data [u8]> { ... }
fn is_undefined(&self) -> bool { ... } }

A trait for generic access to Nlist32 and Nlist64.

Associated Types

type Word: Into<u64>

type Endian: Endian

Loading content...

Required methods

fn n_strx(&self, endian: Self::Endian) -> u32

fn n_type(&self) -> u8

fn n_sect(&self) -> u8

fn n_desc(&self, endian: Self::Endian) -> u16

fn n_value(&self, endian: Self::Endian) -> Self::Word

Loading content...

Provided methods

fn name<'data>(
    &self,
    endian: Self::Endian,
    strings: StringTable<'data>
) -> Result<&'data [u8]>

fn is_undefined(&self) -> bool

Loading content...

Implementors

impl<Endian: Endian> Nlist for Nlist32<Endian>[src]

type Word = u32

type Endian = Endian

impl<Endian: Endian> Nlist for Nlist64<Endian>[src]

type Word = u64

type Endian = Endian

Loading content...