Trait symbolic_demangle::Demangle
[−]
[src]
pub trait Demangle { fn detect_language(&self) -> Option<Language>; fn demangle(&self, opts: DemangleOptions) -> Result<Option<String>>; fn try_demangle(&self, opts: DemangleOptions) -> String; }
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
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.
fn demangle(&self, opts: DemangleOptions) -> Result<Option<String>>
Demangles the name with the given options
fn try_demangle(&self, opts: DemangleOptions) -> String
Tries to demangle the name and falls back to the original name