Rust Search

Find the best content on Rust, curated by the community; a search engine for Rustaceans.
doc.rust-lang.org
attribute #[test]
Attribute macro applied to a function to turn it into a unit test.
attribute core Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
attribute #[global_allocator]
Attribute macro applied to a static to register it as a global allocator.
attribute core Stable since 1.28.0 Version 1.100.0-nightly
doc.rust-lang.org
attribute #[derive]
Attribute macro used to apply derive macros.
attribute core Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
pub macro assert_matches!
Asserts that an expression matches the provided pattern.
macro core Stable since 1.96.0 Version 1.100.0-nightly
doc.rust-lang.org
pub macro line!
Expands to the line number on which it was invoked.
macro core Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
pub const MIN: usize
The smallest value that can be represented by this integer type. Use usize::MIN instead.
constant core Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
pub const MAX: usize
The largest value that can be represented by this integer type. Use usize::MAX instead.
constant core Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
pub mod usize
Redundant constants module for the usize primitive type.
module core Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
pub const MIN: u8
The smallest value that can be represented by this integer type. Use u8::MIN instead.
constant core Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
pub const MAX: u8
The largest value that can be represented by this integer type. Use u8::MAX instead.
constant core Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
pub mod u8
Redundant constants module for the u8 primitive type.
module core Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
pub const MIN: u64
The smallest value that can be represented by this integer type. Use u64::MIN instead.
constant core Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
pub const MAX: u64
The largest value that can be represented by this integer type. Use u64::MAX instead.
constant core Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
pub mod u64
Redundant constants module for the u64 primitive type.
module core Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
pub const MIN: u32
The smallest value that can be represented by this integer type. Use u32::MIN instead.
constant core Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
pub const MAX: u32
The largest value that can be represented by this integer type. Use u32::MAX instead.
constant core Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
pub mod u32
Redundant constants module for the u32 primitive type.
module core Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
pub const MIN: u16
The smallest value that can be represented by this integer type. Use u16::MIN instead.
constant core Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
pub const MAX: u16
The largest value that can be represented by this integer type. Use u16::MAX instead.
constant core Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
pub mod u16
Redundant constants module for the u16 primitive type.
module core Stable since 1.0.0 Version 1.100.0-nightly
"It's amazing how frequent such "rare edge cases" can be. Especially when there are millions of people using billions of files originating from God kno..."

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.