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
"C++ being memory safe is like saying riding a motorcycle is crash safe. It totally is, if you happen to have the knowledge and experience to realize ..."

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.