Trait wasmer_compiler::types::symbols::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§
sourcefn symbol_to_name(&self, symbol: Symbol) -> String
fn symbol_to_name(&self, symbol: Symbol) -> String
Given a Symbol
it returns the name for that symbol in the object file
sourcefn name_to_symbol(&self, name: &str) -> Option<Symbol>
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