pub trait ElfSymbol: Clone {
    // Required methods
    fn st_name(&self) -> Elf64Word;
    fn st_info(&self) -> u8;
    fn st_value(&self) -> Elf64Addr;

    // Provided method
    fn is_function(&self) -> bool { ... }
}
Expand description

ELF symbol.

Required Methods§

source

fn st_name(&self) -> Elf64Word

Returns the symbol name offset.

source

fn st_info(&self) -> u8

Returns the symbol type and binding attributes.

source

fn st_value(&self) -> Elf64Addr

Returns the value associated with the symbol.

Provided Methods§

source

fn is_function(&self) -> bool

Returns whether the symbol is a function.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl ElfSymbol for Sym

Implementors§