Function emf_core_base_rs::global::library::get_function_symbol[][src]

pub fn get_function_symbol<'library, 'handle, L, O, U>(
    _token: &LockToken<L>,
    library: &'handle Library<'library, O>,
    symbol: &impl AsRef<CStr>,
    caster: impl FnOnce(CBaseFn) -> U
) -> Result<Symbol<'handle, U>, Error> where
    O: ImmutableAccessIdentifier

Fetches a function symbol from a library.

Failure

The function fails if library is invalid or library does not contain symbol.

Note

Some platforms may differentiate between a function-pointer and a data-pointer. See get_data_symbol() for fetching some data.

Return

Symbol on success, error otherwise.