Function mod_mgmt::get_containing_crate_name
pub fn get_containing_crate_name(
demangled_full_symbol: &str
) -> Vec<&str, Global>
Expand description
Parses the given symbol string to try to find the name of the parent crate
that contains the symbol.
Depending on the symbol, there may be multiple potential parent crates;
if so, they are returned in order of likeliness:
the first crate name in the symbol is most likely to contain it.
If the parent crate cannot be determined (e.g., a no_mangle
symbol),
then an empty Vec
is returned.
Examples
<*const T as core::fmt::Debug>::fmt
->["core"]
<alloc::boxed::Box<T>>::into_unique
->["alloc"]
<framebuffer::VirtualFramebuffer as display::Display>::fill_rectangle
->["framebuffer", "display"]
keyboard::init
->["keyboard"]