Trait object::read::elf::Sym[][src]

pub trait Sym: Debug + Pod {
    type Word: Into<u64>;
    type Endian: Endian;
    fn st_name(&self, endian: Self::Endian) -> u32;
fn st_info(&self) -> u8;
fn st_bind(&self) -> u8;
fn st_type(&self) -> u8;
fn st_other(&self) -> u8;
fn st_visibility(&self) -> u8;
fn st_shndx(&self, endian: Self::Endian) -> u16;
fn st_value(&self, endian: Self::Endian) -> Self::Word;
fn st_size(&self, endian: Self::Endian) -> Self::Word; fn name<'data>(
        &self,
        endian: Self::Endian,
        strings: StringTable<'data>
    ) -> Result<&'data [u8]> { ... }
fn is_undefined(&self, endian: Self::Endian) -> bool { ... }
fn is_definition(&self, endian: Self::Endian) -> bool { ... } }

A trait for generic access to Sym32 and Sym64.

Associated Types

type Word: Into<u64>[src]

type Endian: Endian[src]

Loading content...

Required methods

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

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

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

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

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

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

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

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

fn st_size(&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]

Parse the symbol name from the string table.

fn is_undefined(&self, endian: Self::Endian) -> bool[src]

Return true if the symbol is undefined.

fn is_definition(&self, endian: Self::Endian) -> bool[src]

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

Loading content...

Implementors

impl<Endian: Endian> Sym for Sym32<Endian>[src]

type Word = u32

type Endian = Endian

impl<Endian: Endian> Sym for Sym64<Endian>[src]

type Word = u64

type Endian = Endian

Loading content...