Struct backtrace::SymbolName [] [src]

pub struct SymbolName<'a> {
    // some 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 &str if the symbols is valid utf-8.

fn as_bytes(&self) -> &'a [u8]

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

Formats the value using the given formatter.

impl<'a> Debug for SymbolName<'a>
[src]

fn fmt(&self, f: &mut Formatter) -> Result

Formats the value using the given formatter.