pub struct Symbol<'lib, T>where
T: 'lib,{ /* private fields */ }Expand description
A typed symbol retrieved from a loaded ELF module.
Symbol provides safe access to a function or variable within a loaded library.
It carries a lifetime marker 'lib to ensure that the symbol cannot outlive
the library it was loaded from, preventing use-after-free errors.
Implementations§
Trait Implementations§
impl<T> Send for Symbol<'_, T>where
T: Send,
impl<T> Sync for Symbol<'_, T>where
T: Sync,
Auto Trait Implementations§
impl<'lib, T> Freeze for Symbol<'lib, T>
impl<'lib, T> RefUnwindSafe for Symbol<'lib, T>where
T: RefUnwindSafe,
impl<'lib, T> Unpin for Symbol<'lib, T>
impl<'lib, T> UnwindSafe for Symbol<'lib, T>where
T: RefUnwindSafe,
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