Function nstd_sys::shared_lib::nstd_shared_lib_load
source · #[no_mangle]
pub unsafe extern "C" fn nstd_shared_lib_load(
path: &NSTDStr
) -> NSTDOptionalSharedLibAvailable on crate feature
nstd_shared_lib only.Expand description
Dynamically loads a shared library at runtime.
Parameters:
const NSTDStr *path- A path to the shared library.
Returns
NSTDOptionalSharedLib lib - A handle to the dynamically loaded library, or none on error.
Panics
Panics if path’s length in bytes exceeds NSTDInt’s max value or allocating fails.
Safety
-
path’s data must be valid for reads. -
See https://docs.rs/libloading/latest/libloading/struct.Library.html#method.new.