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

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

Fetches a data 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_function_symbol() for fetching a function.

Return

Symbol on success, error otherwise.