doc.rust-lang.org
pub mod collections
Collection types.
module
std
Stable since 1.0.0
Version 1.100.0-nightly
doc.rust-lang.org
primitive char
A character type.
primitive
std
Stable since 1.0.0
Version 1.100.0-nightly
doc.rust-lang.org
primitive bool
The boolean type.
primitive
std
Stable since 1.0.0
Version 1.100.0-nightly
doc.rust-lang.org
pub enum BytesOrWideString<'a>
A platform independent representation of a string. When working with std enabled it is recommended to the convenience methods for providing conversions to std types.
enum
std
Version 1.100.0-nightly
doc.rust-lang.org
pub unsafe fn resolve_unsynchronized<F>(addr: *mut core::ffi::c_void, cb: F)
Same as resolve, only unsafe as it's unsynchronized.
function
std
Version 1.100.0-nightly
doc.rust-lang.org
pub unsafe fn resolve_frame_unsynchronized<F>(frame: &super::backtrace::Frame, cb: F)
Same as resolve_frame, only unsafe as it's unsynchronized.
function
std
Version 1.100.0-nightly
doc.rust-lang.org
pub fn cache_mmap(&self, map: Mmap) -> &[u8]
Stores a Mmap for the lifetime of this Stash, returning a pointer which is scoped to just this lifetime.
method
std
Version 1.100.0-nightly
doc.rust-lang.org
pub fn allocate(&self, size: usize) -> &mut [u8]
Allocates a buffer of the specified size and returns a mutable reference to it.
method
std
Version 1.100.0-nightly
doc.rust-lang.org
pub struct Stash
A simple arena allocator for byte buffers.
struct
std
Version 1.100.0-nightly
doc.rust-lang.org
pub fn new(bytes: &'a [u8]) -> SymbolName<'a>
Creates a new symbol name from the raw underlying bytes.
associated_function
std
Version 1.100.0-nightly
doc.rust-lang.org
pub fn as_str(&self) -> Option<&'a str>
Returns the raw (mangled) symbol name as a str if the symbol is valid utf-8.
method
std
Version 1.100.0-nightly
doc.rust-lang.org
pub fn as_bytes(&self) -> &'a [u8]
Returns the raw symbol name as a list of bytes
method
std
Version 1.100.0-nightly
doc.rust-lang.org
pub struct SymbolName<'a>
A wrapper around a symbol name to provide ergonomic accessors to the demangled name, the raw bytes, the raw string, etc.
struct
std
Version 1.100.0-nightly
doc.rust-lang.org
pub fn name(&self) -> Option<SymbolName<'_>>
Returns the name of this function.
method
std
Version 1.100.0-nightly
doc.rust-lang.org
pub fn lineno(&self) -> Option<u32>
Returns the line number for where this symbol is currently executing.
method
std
Version 1.100.0-nightly
doc.rust-lang.org
pub fn filename_raw(&self) -> Option<BytesOrWideString<'_>>
Returns the raw filename as a slice. This is mainly useful for no_std environments.
method
std
Version 1.100.0-nightly
doc.rust-lang.org
pub fn colno(&self) -> Option<u32>
Returns the column number for where this symbol is currently executing.
method
std
Version 1.100.0-nightly
doc.rust-lang.org
pub fn addr(&self) -> Option<*mut c_void>
Returns the starting address of this function.
method
std
Version 1.100.0-nightly
doc.rust-lang.org
pub struct Symbol
A trait representing the resolution of a symbol in a file.
struct
std
Version 1.100.0-nightly
doc.rust-lang.org
pub enum PrintFmt
The styles of printing that we can print
enum
std
Version 1.100.0-nightly