pub struct Linker {
pub cbs: Rc<RefCell<LinkerCallbacks>>,
/* private fields */
}Fields§
§cbs: Rc<RefCell<LinkerCallbacks>>Implementations§
Source§impl Linker
impl Linker
pub fn new(config: Config) -> Self
pub fn load_program( &mut self, path: &str, base_addr: Option<usize>, ) -> Result<usize>
pub fn load_library( &mut self, name: Option<&str>, resolve: Resolve, scope: ScopeKind, noload: bool, ) -> Result<ObjectHandle>
pub fn get_sym( &self, handle: Option<ObjectHandle>, name: &str, ) -> Option<*mut c_void>
pub fn unload(&mut self, handle: ObjectHandle)
pub fn fini(&self)
Auto Trait Implementations§
impl Freeze for Linker
impl !RefUnwindSafe for Linker
impl !Send for Linker
impl !Sync for Linker
impl Unpin for Linker
impl UnsafeUnpin for Linker
impl !UnwindSafe for Linker
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