wasmer_types::compilation::symbols

Trait SymbolRegistry

source
pub trait SymbolRegistry: Send + Sync {
    // Required methods
    fn symbol_to_name(&self, symbol: Symbol) -> String;
    fn name_to_symbol(&self, name: &str) -> Option<Symbol>;
}
Expand description

This trait facilitates symbol name lookups in a native object file.

Required Methods§

source

fn symbol_to_name(&self, symbol: Symbol) -> String

Given a Symbol it returns the name for that symbol in the object file

source

fn name_to_symbol(&self, name: &str) -> Option<Symbol>

Given a name it returns the Symbol for that name in the object file

This function is the inverse of SymbolRegistry::symbol_to_name

Implementors§