Rust Search

Find the best content on Rust, curated by the community; a search engine for Rustaceans.
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
"Rust's beauty lies in the countless decisions made by the development community that constantly make you feel like you can have ten cakes and eat all ..."

Search tips

Type anything to search across articles, videos (including conference talks), podcasts, research, crates, and Rust API documentation. These operators give you finer control — click an example to try it.

Find pages containing all your words. Pages where the words appear together rank higher.
Quote part of your query to keep those words together as an exact phrase within a larger search.
Wrap the whole query in quotes for a verbatim search that matches text exactly, punctuation and all — perfect for Rust syntax. Needs at least 3 characters.
Put ! first to open the top result immediately. Quote the whole query for a literal leading bang, as in '!Send'. Bangs elsewhere, such as println!, stay literal. Browser and launcher shortcuts can invoke this directly. See search integrations.
Limit results to a single site. Works on its own () too. One site: per search.

Use the tabs and filters above the results to narrow by content type, publication year, and sort order.