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.
Auto Trait Implementations§
impl Freeze for RegistryReadGuard
impl RefUnwindSafe for RegistryReadGuard
impl !Send for RegistryReadGuard
impl Sync for RegistryReadGuard
impl Unpin for RegistryReadGuard
impl UnwindSafe for RegistryReadGuard
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more