Function emf_core_base_rs::global::library::link_library [−][src]
pub unsafe fn link_library<'library, 'loader, L, O, LO, IO>(
_token: &mut LockToken<L>,
library: &Library<'library, O>,
loader: &Loader<'loader, LO>,
internal: &InternalLibrary<IO>
) -> Result<(), Error> where
'loader: 'library,
O: MutableAccessIdentifier,
LO: ImmutableAccessIdentifier,
IO: ImmutableAccessIdentifier,
Links a library handle to an internal library handle.
Overrides the internal link of the library handle by setting it to the new library loader and internal handle.
Failure
The function fails if library
or loader
are invalid.
Return
Error on failure.
Safety
Incorrect usage can lead to dangling handles or use-after-free errors.