Struct backtrace::SymbolName
[−]
[src]
pub struct SymbolName<'a> { /* fields omitted */ }
A wrapper around a symbol name to provide ergonomic accessors to the demangled name, the raw bytes, the raw string, etc.
Methods
impl<'a> SymbolName<'a>
[src]
fn new(bytes: &'a [u8]) -> SymbolName<'a>
Creates a new symbol name from the raw underlying bytes.
fn as_str(&self) -> Option<&'a str>
Returns the raw symbol name as a str
if the symbols is valid utf-8.
fn as_bytes(&self) -> &'a [u8]
Returns the raw symbol name as a list of bytes