pub struct RegistryReadGuard { /* private fields */ }Expand description
Symbol registry read lock guard
Implementations§
Source§impl RegistryReadGuard
impl RegistryReadGuard
Sourcepub fn get(&self, string: &str) -> Option<Symbol>
pub fn get(&self, string: &str) -> Option<Symbol>
Check if the registry contains a symbol matching string and return it
if so.
This is a simple hash table lookup.
Sourcepub fn get_by_address(&self, address: u64) -> Option<Symbol>
pub fn get_by_address(&self, address: u64) -> Option<Symbol>
Check if a symbol has been registered at address (i.e., it has been
produced by Symbol::to_ffi()), and return the symbol if so.
This can be used to verify symbols that have made a round-trip over an FFI boundary.