Rust Search

Find the best content on Rust, curated by the community; a search engine for Rustaceans.
doc.rust-lang.org
pub fn advance_while<P>(&mut self, predicate: P) -> usize
Advance the iterator while predicate returns true. Returns the number of items it advanced by.
method std Version 1.100.0-nightly
doc.rust-lang.org
pub struct WStrUnits<'a>
A safe iterator over a LPWSTR (aka a pointer to a series of UTF-16 code units terminated by a NULL).
struct std Version 1.100.0-nightly
doc.rust-lang.org
pub fn mul_div_u64(value: u64, numerator: u64, denom: u64) -> u64
Computes (value*numerator)/denom without overflow, as long as both numerator*denom and the overall result fit into u64 (which is the case for our time conversions).
function std Version 1.100.0-nightly
doc.rust-lang.org
pub mod fd
Platform-dependent file descriptor abstraction.
module std Version 1.100.0-nightly
doc.rust-lang.org
pub fn unique_thread_exit()
Mitigation for https://github.com/rust-lang/rust/issues/126600
function std Version 1.100.0-nightly
doc.rust-lang.org
pub mod env_consts
Constants associated with each target.
module std Version 1.100.0-nightly
doc.rust-lang.org
pub fn env() -> Env
Returns a vector of (variable, value) byte-vector pairs for all the environment variables of the current process.
function std Version 1.100.0-nightly
doc.rust-lang.org
pub mod env
Platform-dependent environment variables abstraction.
module std Version 1.100.0-nightly
doc.rust-lang.org
pub fn output_filename(fmt: &mut fmt::Formatter<'_>, bows: crate::backtrace_rs::BytesOrWideString<'_>, print_fmt: crate::backtrace_rs::PrintFmt, cwd: Option<&crate::path::PathBuf>) -> fmt::Result
Prints the filename of the backtrace frame.
function std Version 1.100.0-nightly
doc.rust-lang.org
pub fn __rust_end_short_backtrace<F, T>(f: F) -> T
Fixed frame used to clean the backtrace with RUST_BACKTRACE=1. Note that this is only inline(never) when backtraces in std are enabled, otherwise it's fine to optimize away.
function std Version 1.100.0-nightly
doc.rust-lang.org
pub fn __rust_begin_short_backtrace<F, T>(f: F) -> T
Fixed frame used to clean the backtrace with RUST_BACKTRACE=1. Note that this is only inline(never) when backtraces in std are enabled, otherwise it's fine to optimize away.
function std Version 1.100.0-nightly
doc.rust-lang.org
pub mod backtrace
Common code for printing backtraces.
module std Version 1.100.0-nightly
doc.rust-lang.org
pub unsafe fn init(argc: isize, argv: *const *const u8)
One-time global initialization.
function std Version 1.100.0-nightly
doc.rust-lang.org
pub fn args() -> Args
Returns the command line arguments
function std Version 1.100.0-nightly
doc.rust-lang.org
pub mod args
Platform-dependent command line arguments abstraction.
module std Version 1.100.0-nightly
doc.rust-lang.org
pub struct RwLockWriteGuard<'rwlock, T>
RAII structure used to release the exclusive write access of a lock when dropped.
struct std Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
pub struct RwLockReadGuard<'rwlock, T>
RAII structure used to release the shared read access of a lock when dropped.
struct std Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
pub struct RwLock<T>
A reader-writer lock
struct std Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
pub struct MutexGuard<'a, T>
An RAII implementation of a "scoped lock" of a mutex. When this structure is dropped (falls out of scope), the lock will be unlocked.
struct std Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
pub fn try_lock(&self) -> TryLockResult<MutexGuard<'_, T>>
Attempts to acquire this lock.
method std Stable since 1.0.0 Version 1.100.0-nightly
"Rusts standard library, and a lot of the popular crates, are like a museum. While it does change, as new exhibitions are added, it is mostly finished...."

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.