Rust Search

Find the best content on Rust, curated by the community; a search engine for Rustaceans.
doc.rust-lang.org
pub mod rust_2024
The 2024 version of the core prelude.
module core Stable since 1.85.0 Version 1.100.0-nightly
doc.rust-lang.org
pub mod rust_2021
The 2021 version of the core prelude.
module core Stable since 1.55.0 Version 1.100.0-nightly
doc.rust-lang.org
pub mod rust_2018
The 2018 version of the core prelude.
module core Stable since 1.55.0 Version 1.100.0-nightly
doc.rust-lang.org
pub mod rust_2015
The 2015 version of the core prelude.
module core Stable since 1.55.0 Version 1.100.0-nightly
doc.rust-lang.org
pub mod prelude
The core prelude
module core Stable since 1.4.0 Version 1.100.0-nightly
doc.rust-lang.org
pub const unsafe fn write_volatile(self, val: T)
Performs a volatile write of a memory location with the given value without reading or dropping the old value.
method core Stable since 1.26.0 Version 1.100.0-nightly
doc.rust-lang.org
pub const unsafe fn write_unaligned(self, val: T)
Overwrites a memory location with the given value without reading or dropping the old value.
method core Stable since 1.26.0 Version 1.100.0-nightly
doc.rust-lang.org
pub const unsafe fn write_bytes(self, val: u8, count: usize)
Invokes memset on the specified pointer, setting count * size_of::<T>() bytes of memory starting at self to val.
method core Stable since 1.26.0 Version 1.100.0-nightly
doc.rust-lang.org
pub const unsafe fn write(self, val: T)
Overwrites a memory location with the given value without reading or dropping the old value.
method core Stable since 1.26.0 Version 1.100.0-nightly
doc.rust-lang.org
pub const fn wrapping_sub(self, count: usize) -> Self
Subtracts an unsigned offset from a pointer using wrapping arithmetic.
method core Stable since 1.26.0 Version 1.100.0-nightly
doc.rust-lang.org
pub const fn wrapping_offset(self, count: isize) -> *const T
Adds a signed offset to a pointer using wrapping arithmetic.
method core Stable since 1.16.0 Version 1.100.0-nightly
doc.rust-lang.org
pub const fn wrapping_byte_sub(self, count: usize) -> Self
Subtracts an unsigned offset in bytes from a pointer using wrapping arithmetic.
method core Stable since 1.75.0 Version 1.100.0-nightly
doc.rust-lang.org
pub const fn wrapping_byte_offset(self, count: isize) -> Self
Adds a signed offset in bytes to a pointer using wrapping arithmetic.
method core Stable since 1.75.0 Version 1.100.0-nightly
doc.rust-lang.org
pub const fn wrapping_byte_add(self, count: usize) -> Self
Adds an unsigned offset in bytes to a pointer using wrapping arithmetic.
method core Stable since 1.75.0 Version 1.100.0-nightly
doc.rust-lang.org
pub const fn wrapping_add(self, count: usize) -> Self
Adds an unsigned offset to a pointer using wrapping arithmetic.
method core Stable since 1.26.0 Version 1.100.0-nightly
doc.rust-lang.org
pub fn with_addr(self, addr: usize) -> Self
Creates a new pointer with the given address and the provenance of self.
method core Stable since 1.84.0 Version 1.100.0-nightly
doc.rust-lang.org
pub const unsafe fn swap(self, with: *mut T)
Swaps the values at two mutable locations of the same type, without deinitializing either. They may overlap, unlike mem::swap which is otherwise equivalent.
method core Stable since 1.26.0 Version 1.100.0-nightly
doc.rust-lang.org
pub const unsafe fn sub(self, count: usize) -> Self
Subtracts an unsigned offset from a pointer.
method core Stable since 1.26.0 Version 1.100.0-nightly
doc.rust-lang.org
pub const unsafe fn replace(self, src: T) -> T
Replaces the value at self with src, returning the old value, without dropping either.
method core Stable since 1.26.0 Version 1.100.0-nightly
doc.rust-lang.org
pub const unsafe fn read_volatile(self) -> T
Performs a volatile read of the value from self without moving it. This leaves the memory in self unchanged.
method core Stable since 1.26.0 Version 1.100.0-nightly
"I sure need to work on my quotes."

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.