pub struct ForeignLibrary {
pub module_handle: HMODULE,
}Fields§
§module_handle: HMODULEImplementations§
Source§impl ForeignLibrary
impl ForeignLibrary
pub fn new(lib_name: &str) -> ForwardResult<Self>
pub fn get_proc_address( &self, proc_name: &str, ) -> ForwardResult<unsafe extern "system" fn() -> isize>
pub fn into_raw(self) -> HMODULE
Trait Implementations§
Source§impl Drop for ForeignLibrary
impl Drop for ForeignLibrary
Auto Trait Implementations§
impl Freeze for ForeignLibrary
impl RefUnwindSafe for ForeignLibrary
impl Send for ForeignLibrary
impl Sync for ForeignLibrary
impl Unpin for ForeignLibrary
impl UnsafeUnpin for ForeignLibrary
impl UnwindSafe for ForeignLibrary
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