Struct libloading::os::unix::Symbol
source · pub struct Symbol<T> {
pointer: *mut c_void,
pd: PhantomData<T>,
}
Expand description
Symbol from a library.
A major difference compared to the cross-platform Symbol
is that this does not ensure that the
Symbol
does not outlive the Library
it comes from.
Fields§
§pointer: *mut c_void
§pd: PhantomData<T>
Implementations§
Trait Implementations§
impl<T: Send> Send for Symbol<T>
impl<T: Sync> Sync for Symbol<T>
Auto Trait Implementations§
impl<T> Freeze for Symbol<T>
impl<T> RefUnwindSafe for Symbol<T>where
T: RefUnwindSafe,
impl<T> Unpin for Symbol<T>where
T: Unpin,
impl<T> UnwindSafe for Symbol<T>where
T: UnwindSafe,
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)