Rust Search

Find the best content on Rust, curated by the community; a search engine for Rustaceans.
doc.rust-lang.org
pub fn align_offset(self, align: usize) -> usize
Computes the offset that needs to be applied to the pointer in order to make it aligned to align.
method core Stable since 1.80.0 Version 1.100.0-nightly
doc.rust-lang.org
pub fn addr(self) -> NonZero<usize>
Gets the "address" portion of the pointer.
method core Stable since 1.84.0 Version 1.100.0-nightly
doc.rust-lang.org
pub const unsafe fn add(self, count: usize) -> Self
Adds an unsigned offset to a pointer.
method core Stable since 1.80.0 Version 1.100.0-nightly
doc.rust-lang.org
pub struct NonNull<T>
*mut T but non-zero and covariant.
struct core Stable since 1.25.0 Version 1.100.0-nightly
doc.rust-lang.org
pub fn hash<T, S>(hashee: *const T, into: &mut S)
Hash a raw pointer.
function core Stable since 1.35.0 Version 1.100.0-nightly
doc.rust-lang.org
pub const fn from_ref<T>(r: &T) -> *const T
Converts a reference to a raw pointer.
function core Stable since 1.76.0 Version 1.100.0-nightly
doc.rust-lang.org
pub const fn from_mut<T>(r: &mut T) -> *mut T
Converts a mutable reference to a raw pointer.
function core Stable since 1.76.0 Version 1.100.0-nightly
doc.rust-lang.org
pub fn fn_addr_eq<T, U>(f: T, g: U) -> bool
Compares the addresses of the two function pointers for equality.
function core Stable since 1.85.0 Version 1.100.0-nightly
doc.rust-lang.org
pub fn eq<T>(a: *const T, b: *const T) -> bool
Compares raw pointers for equality.
function core Stable since 1.17.0 Version 1.100.0-nightly
doc.rust-lang.org
pub const unsafe fn drop_in_place<T>(to_drop: *mut T)
Executes the destructor (if any) of the pointed-to value.
function core Stable since 1.8.0 Version 1.100.0-nightly
doc.rust-lang.org
pub const fn dangling_mut<T>() -> *mut T
Creates a new pointer that is dangling, but non-null and well-aligned.
function core Stable since 1.84.0 Version 1.100.0-nightly
doc.rust-lang.org
pub const fn dangling<T>() -> *const T
Creates a new pointer that is dangling, but non-null and well-aligned.
function core Stable since 1.84.0 Version 1.100.0-nightly
doc.rust-lang.org
pub const unsafe fn copy_nonoverlapping<T>(src: *const T, dst: *mut T, count: usize)
Copies count * size_of::<T>() bytes from src to dst. The source and destination must not overlap.
function core Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
pub const unsafe fn copy<T>(src: *const T, dst: *mut T, count: usize)
Copies count * size_of::<T>() bytes from src to dst. The source and destination may overlap.
function core Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
pub macro addr_of_mut!
Creates a mut raw pointer to a place, without creating an intermediate reference.
macro core Stable since 1.51.0 Version 1.100.0-nightly
doc.rust-lang.org
pub macro addr_of!
Creates a const raw pointer to a place, without creating an intermediate reference.
macro core Stable since 1.51.0 Version 1.100.0-nightly
doc.rust-lang.org
pub fn addr_eq<T, U>(p: *const T, q: *const U) -> bool
Compares the addresses of the two pointers for equality, ignoring any metadata in fat pointers.
function core Stable since 1.76.0 Version 1.100.0-nightly
doc.rust-lang.org
pub mod ptr
Manually manage memory through raw pointers.
module core Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
pub mod primitive
This module reexports the primitive types to allow usage that is not possibly shadowed by other declared types.
module core Stable since 1.43.0 Version 1.100.0-nightly
doc.rust-lang.org
pub mod v1
The first version of the core prelude.
module core Stable since 1.4.0 Version 1.100.0-nightly
"We'd have buttons on the screen to control the fans of the car. I had to write a lot of code before I could compile it all, a big jenga tower. But onc..."

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.