pub unsafe fn entry<T: Copy>(
library: &str,
symbol: &str,
) -> Result<T, LoadError>Expand description
The entry symbol of library library (its file name, as the dynamic loader finds it),
opening the library the first time. A library opened here is never closed: what it hands out
lives as long as the process.
§Errors
LoadError when the library does not open or lacks the entry, and for
a T that is not the size of a function pointer.
§Safety
T must be the type of the function symbol names: a fn pointer type,
spelled from the same definition the library’s entry is checked against,
in a library built with this runtime.