pub struct LinkerCallbacks {
pub unload: Box<dyn Fn(&mut Linker, ObjectHandle)>,
pub load_library: Box<dyn Fn(&mut Linker, Option<&str>, Resolve, ScopeKind, bool) -> Result<ObjectHandle>>,
pub get_sym: Box<dyn Fn(&Linker, Option<ObjectHandle>, &str) -> Option<*mut c_void>>,
}Fields§
§unload: Box<dyn Fn(&mut Linker, ObjectHandle)>§load_library: Box<dyn Fn(&mut Linker, Option<&str>, Resolve, ScopeKind, bool) -> Result<ObjectHandle>>§get_sym: Box<dyn Fn(&Linker, Option<ObjectHandle>, &str) -> Option<*mut c_void>>Implementations§
Source§impl LinkerCallbacks
impl LinkerCallbacks
pub fn new() -> LinkerCallbacks
Auto Trait Implementations§
impl Freeze for LinkerCallbacks
impl !RefUnwindSafe for LinkerCallbacks
impl !Send for LinkerCallbacks
impl !Sync for LinkerCallbacks
impl Unpin for LinkerCallbacks
impl UnsafeUnpin for LinkerCallbacks
impl !UnwindSafe for LinkerCallbacks
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