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

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_definition(&self) -> bool { ... }
fn library_ordinal(&self, endian: Self::Endian) -> u8 { ... } }

A trait for generic access to Nlist32 and Nlist64.

Associated Types

type Word: Into<u64>[src]

type Endian: Endian[src]

Loading content...

Required methods

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

fn n_type(&self) -> u8[src]

fn n_sect(&self) -> u8[src]

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

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

Loading content...

Provided methods

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

fn is_definition(&self) -> bool[src]

Return true if the symbol is a definition of a function or data object.

fn library_ordinal(&self, endian: Self::Endian) -> u8[src]

Return the library ordinal.

This is either a 1-based index into the dylib load commands, or a special ordinal.

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...