[−][src]Function rustc_demangle::demangle
pub fn demangle(s: &str) -> Demangle
De-mangles a Rust symbol into a more readable version
This function will take a mangled symbol and return a value. When printed, the de-mangled version will be written. If the symbol does not look like a mangled symbol, the original value will be written instead.
Examples
use rustc_demangle::demangle; assert_eq!(demangle("_ZN4testE").to_string(), "test"); assert_eq!(demangle("_ZN3foo3barE").to_string(), "foo::bar"); assert_eq!(demangle("foo").to_string(), "foo");