Trait lief::generic::Symbol

pub trait Symbol {
    // Provided methods
    fn name(&self) -> String { ... }
    fn value(&self) -> u64 { ... }
    fn size(&self) -> u64 { ... }
}
Expand description

Trait shared by all the symbols in executable formats

Provided Methods§

fn name(&self) -> String

Symbol’s name

fn value(&self) -> u64

Symbol’s value whose interpretation depends on the symbol’s kind. Usually this is the address of the symbol though.

fn size(&self) -> u64

Size of the symbol (can be 0)

Trait Implementations§

§

impl Debug for &dyn Symbol

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Implementors§

§

impl Symbol for lief::elf::Symbol<'_>

§

impl Symbol for lief::macho::Symbol<'_>

§

impl Symbol for DelayImportEntry<'_>

§

impl Symbol for Entry<'_>

§

impl Symbol for ImportEntry<'_>