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>
[src]
Creates a new symbol name from the raw underlying bytes.
fn as_str(&self) -> Option<&'a str>
[src]
Returns the raw symbol name as a str
if the symbols is valid utf-8.
fn as_bytes(&self) -> &'a [u8]
[src]
Returns the raw symbol name as a list of bytes
Trait Implementations
impl<'a> Display for SymbolName<'a>
[src]
fn fmt(&self, f: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more