lief::runtime::module

Function current_module

pub fn current_module() -> Option<Modules>
Expand description

Return the module that contains the code calling this function.

The bindings are statically linked, so it returns the executable or the shared library (e.g. a cdylib) that embeds this crate.