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