Rust Search

Find the best content on Rust, curated by the community; a search engine for Rustaceans.
doc.rust-lang.org
pub const unsafe fn transmute<Src, Dst>(src: Src) -> Dst
...For Vec, this means that both the size and alignment of the inner types have to match. Other containers might rely on the size of the type, alignment, or even the TypeId, in which case transmuting wouldn't be possible at all without violating the container invariants. let store = [0...
function core Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
primitive fn
...Note that FFI requires additional care to ensure that the ABI for both sides of the call match. The exact requirements are not currently documented. Safety Plain function pointers are obtained by casting either plain functions, or closures that don't capture an environment: fn add_one(x: usize) -> usize...
primitive core Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
primitive fn
...Note that FFI requires additional care to ensure that the ABI for both sides of the call match. The exact requirements are not currently documented. Safety Plain function pointers are obtained by casting either plain functions, or closures that don't capture an environment: fn add_one(x: usize) -> usize...
primitive std Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
pub mod pin
...fn check_for_move(&mut self) { let current_addr = self as *mut Self as usize; match self.0 { None => self.0 = Some(current_addr), Some(prev_addr) => assert_eq!(prev_addr, current_addr), } } } // Create a tracker and store the initial address let mut tracker = AddrTracker::default(); tracker.check_for_move...
module core Stable since 1.33.0 Version 1.100.0-nightly
"The major philosophic difference between Rust today and Swift-as-I-envision-it is that Rust forces you to think about ownership everywhere, but Swift-..."

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.
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.