Trait symbolic_demangle::Demangle
source · 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§
sourcefn detect_language(&self) -> Option<Language>
fn detect_language(&self) -> Option<Language>
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.
sourcefn demangle(&self, opts: DemangleOptions) -> Option<String>
fn demangle(&self, opts: DemangleOptions) -> Option<String>
Demangles the name with the given options.
sourcefn try_demangle(&self, opts: DemangleOptions) -> String
fn try_demangle(&self, opts: DemangleOptions) -> String
Tries to demangle the name and falls back to the original name.