# 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]

#### `pub fn new(bytes: &'a [u8]) -> SymbolName<'a>`
[src]

Creates a new symbol name from the raw underlying bytes.

#### `pub fn as_str(&self) -> Option<&'a str>`
[src]

Returns the raw symbol name as a `str` if the symbols is valid utf-8.

#### `pub 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

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

#### `fn fmt(&self, f: &mut Formatter) -> Result`
[src]

Formats the value using the given formatter. Read more

# Help

## Keyboard Shortcuts

`?`
  Show this help dialog
`S`
  Focus the search field
`↑`
  Move up in search results
`↓`
  Move down in search results
`↹`
  Switch tab
`⏎`
  Go to active search result
`+`
  Expand all sections
`-`
  Collapse all sections

## Search Tricks

Prefix searches with a type followed by a colon (e.g. `fn:`) to restrict the search to a given type.

Accepted types are: `fn`, `mod`, `struct`, `enum`, `trait`, `type`, `macro`, and `const`.

Search functions by type signature (e.g. `vec -> usize` or `* -> vec`)