pub trait Demangle {
    fn detect_language(&self) -> Option<Language>;
    fn demangle(&self, opts: DemangleOptions) -> Option<String>;
    fn try_demangle(&self, opts: DemangleOptions) -> String;
}
Expand description

Allows to demangle potentially mangled names.

Non-mangled names are largely ignored and language detection will not return a language. Upon formatting, the symbol is automatically demangled (without arguments).

Required Methods§

Infers the language of a mangled name.

In case the symbol is not mangled or not one of the supported languages the return value will be None. If the language of the symbol was specified explicitly, this is returned instead.

Demangles the name with the given options.

Tries to demangle the name and falls back to the original name.

Implementations on Foreign Types§

Implementors§