wasmer_compiler::types::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§