Rust Search

Find the best content on Rust, curated by the community; a search engine for Rustaceans.
doc.rust-lang.org
pub type AtomicU32 = Atomic<u32>
An integer type which can be safely shared between threads.
type_alias core Stable since 1.34.0 Version 1.100.0-nightly
doc.rust-lang.org
pub type AtomicU16 = Atomic<u16>
An integer type which can be safely shared between threads.
type_alias core Stable since 1.34.0 Version 1.100.0-nightly
doc.rust-lang.org
pub type AtomicPtr<T> = Atomic<*mut T>
A raw pointer type which can be safely shared between threads.
type_alias core Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
pub type AtomicIsize = Atomic<isize>
An integer type which can be safely shared between threads.
type_alias core Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
pub type AtomicI8 = Atomic<i8>
An integer type which can be safely shared between threads.
type_alias core Stable since 1.34.0 Version 1.100.0-nightly
doc.rust-lang.org
pub type AtomicI64 = Atomic<i64>
An integer type which can be safely shared between threads.
type_alias core Stable since 1.34.0 Version 1.100.0-nightly
doc.rust-lang.org
pub type AtomicI32 = Atomic<i32>
An integer type which can be safely shared between threads.
type_alias core Stable since 1.34.0 Version 1.100.0-nightly
doc.rust-lang.org
pub type AtomicI16 = Atomic<i16>
An integer type which can be safely shared between threads.
type_alias core Stable since 1.34.0 Version 1.100.0-nightly
doc.rust-lang.org
pub type AtomicBool = Atomic<bool>
A boolean type which can be safely shared between threads.
type_alias core Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
pub const ATOMIC_USIZE_INIT: AtomicUsize
An AtomicUsize initialized to 0.
constant core Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
pub const ATOMIC_ISIZE_INIT: AtomicIsize
An AtomicIsize initialized to 0.
constant core Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
pub const ATOMIC_BOOL_INIT: AtomicBool
An AtomicBool initialized to false.
constant core Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
pub mod atomic
Atomic types
module core Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
pub mod sync
Synchronization primitives
module core Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
pub macro stringify!
Stringifies its arguments.
macro core Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
pub fn trim_start_matches<P>(&self, pat: P) -> &str
Returns a string slice with all prefixes that match a pattern repeatedly removed.
method core Stable since 1.30.0 Version 1.100.0-nightly
doc.rust-lang.org
pub fn trim_start(&self) -> &str
Returns a string slice with leading whitespace removed.
method core Stable since 1.30.0 Version 1.100.0-nightly
doc.rust-lang.org
pub fn trim_right_matches<P>(&self, pat: P) -> &str
Returns a string slice with all suffixes that match a pattern repeatedly removed.
method core Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
pub fn trim_right(&self) -> &str
Returns a string slice with trailing whitespace removed.
method core Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
pub fn trim_matches<P>(&self, pat: P) -> &str
Returns a string slice with all prefixes and suffixes that match a pattern repeatedly removed.
method core Stable since 1.0.0 Version 1.100.0-nightly
"JG: mem::replace / mem::swap === [Indiana Jones swapping the artifact for a bag of sand in a temple](https://c.tenor.com/eqLNYv0A9TQAAAAC/swap-indiana..."

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.