Rust Search

Find the best content on Rust, curated by the community; a search engine for Rustaceans.
doc.rust-lang.org
pub const fn checked_mul(self, other: Self) -> Option<Self>
Multiplies two non-zero integers together. Checks for overflow and returns None on overflow. As a consequence, the result cannot wrap to zero.
method core Stable since 1.64.0 Version 1.100.0-nightly
doc.rust-lang.org
pub const fn checked_add(self, other: u8) -> Option<Self>
Adds an unsigned integer to a non-zero value. Checks for overflow and returns None on overflow. As a consequence, the result cannot wrap to zero.
method core Stable since 1.64.0 Version 1.100.0-nightly
doc.rust-lang.org
pub const fn checked_abs(self) -> Option<Self>
Checked absolute value. Checks for overflow and returns None if self == NonZero::<i8>::MIN. The result cannot be zero.
method core Stable since 1.64.0 Version 1.100.0-nightly
doc.rust-lang.org
pub const fn cast_unsigned(self) -> NonZero<u8>
Returns the bit pattern of self reinterpreted as an unsigned integer of the same size.
method core Stable since 1.87.0 Version 1.100.0-nightly
doc.rust-lang.org
pub const fn cast_signed(self) -> NonZero<i8>
Returns the bit pattern of self reinterpreted as a signed integer of the same size.
method core Stable since 1.87.0 Version 1.100.0-nightly
doc.rust-lang.org
pub const fn bit_width(self) -> NonZero<u32>
Returns the minimum number of bits required to represent self.
method core Stable since 1.97.0 Version 1.100.0-nightly
doc.rust-lang.org
pub const fn abs(self) -> Self
Computes the absolute value of self. See i8::abs for documentation on overflow behavior.
method core Stable since 1.64.0 Version 1.100.0-nightly
doc.rust-lang.org
const MIN: Self
The smallest value that can be represented by this non-zero integer type, 1.
associated_constant core Stable since 1.70.0 Version 1.100.0-nightly
doc.rust-lang.org
const MAX: Self
The largest value that can be represented by this non-zero integer type, equal to u8::MAX.
associated_constant core Stable since 1.70.0 Version 1.100.0-nightly
doc.rust-lang.org
const BITS: u32
The size of this non-zero integer type in bits.
associated_constant core Stable since 1.67.0 Version 1.100.0-nightly
doc.rust-lang.org
pub struct NonZero<T>
A value that is known not to equal zero.
struct core Stable since 1.79.0 Version 1.100.0-nightly
doc.rust-lang.org
pub struct ParseFloatError
An error which can be returned when parsing a float.
struct core Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
pub struct TryFromIntError
The error type returned when a checked integral type conversion fails.
struct core Stable since 1.34.0 Version 1.100.0-nightly
doc.rust-lang.org
pub const fn kind(&self) -> &IntErrorKind
Outputs the detailed cause of parsing an integer failing.
method core Stable since 1.55.0 Version 1.100.0-nightly
doc.rust-lang.org
pub struct ParseIntError
An error which can be returned when parsing an integer.
struct core Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
pub enum IntErrorKind
Enum to store the various types of errors that can cause parsing or converting an integer to fail.
enum core Stable since 1.55.0 Version 1.100.0-nightly
doc.rust-lang.org
pub enum FpCategory
A classification of floating point numbers.
enum core Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
pub mod num
Numeric traits and functions for the built-in numeric types.
module core Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
pub const fn set_scope_id(&mut self, new_scope_id: u32)
Changes the scope ID associated with this socket address.
method core Stable since 1.9.0 Version 1.100.0-nightly
doc.rust-lang.org
pub const fn set_port(&mut self, new_port: u16)
Changes the port number associated with this socket address.
method core Stable since 1.9.0 Version 1.100.0-nightly
"Rust helped me grasp concepts I should have known when writing C++"

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.