Rust Search

Find the best content on Rust, curated by the community; a search engine for Rustaceans.
doc.rust-lang.org
fn deref(&self) -> &<Self as >::Target
Dereferences the value.
method core Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
type Target
The resulting type after dereferencing.
associated_type core Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
pub trait Deref
Used for immutable dereferencing operations, like *v.
trait core Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
pub const fn map_continue<T, F>(self, f: F) -> ControlFlow<B, T>
Maps ControlFlow<B, C> to ControlFlow<B, T> by applying a function to the continue value in case it exists.
method core Stable since 1.83.0 Version 1.100.0-nightly
doc.rust-lang.org
pub const fn map_break<T, F>(self, f: F) -> ControlFlow<T, C>
Maps ControlFlow<B, C> to ControlFlow<T, C> by applying a function to the break value in case it exists.
method core Stable since 1.83.0 Version 1.100.0-nightly
doc.rust-lang.org
pub const fn is_continue(&self) -> bool
Returns true if this is a Continue variant.
method core Stable since 1.59.0 Version 1.100.0-nightly
doc.rust-lang.org
pub const fn is_break(&self) -> bool
Returns true if this is a Break variant.
method core Stable since 1.59.0 Version 1.100.0-nightly
doc.rust-lang.org
pub const fn continue_value(self) -> Option<C>
Converts the ControlFlow into an Option which is Some if the ControlFlow was Continue and None otherwise.
method core Stable since 1.83.0 Version 1.100.0-nightly
doc.rust-lang.org
pub const fn continue_ok(self) -> Result<C, B>
Converts the ControlFlow into a Result which is Ok if the ControlFlow was Continue and Err if otherwise.
method core Stable since 1.96.0 Version 1.100.0-nightly
doc.rust-lang.org
pub const fn break_value(self) -> Option<B>
Converts the ControlFlow into an Option which is Some if the ControlFlow was Break and None otherwise.
method core Stable since 1.83.0 Version 1.100.0-nightly
doc.rust-lang.org
pub const fn break_ok(self) -> Result<B, C>
Converts the ControlFlow into a Result which is Ok if the ControlFlow was Break and Err if otherwise.
method core Stable since 1.96.0 Version 1.100.0-nightly
doc.rust-lang.org
pub enum ControlFlow<B, C>
Used to tell an operation whether it should exit early or go on as usual.
enum core Stable since 1.55.0 Version 1.100.0-nightly
doc.rust-lang.org
fn shr_assign(&mut self, rhs: Rhs)
Performs the >>= operation.
method core Stable since 1.8.0 Version 1.100.0-nightly
doc.rust-lang.org
pub trait ShrAssign<Rhs>
The right shift assignment operator >>=.
trait core Stable since 1.8.0 Version 1.100.0-nightly
doc.rust-lang.org
fn shr(self, rhs: Rhs) -> <Self as >::Output
Performs the >> operation.
method core Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
type Output
The resulting type after applying the >> operator.
associated_type core Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
pub trait Shr<Rhs>
The right shift operator >>. Note that because this trait is implemented for all integer types with multiple right-hand-side types, Rust's type checker has special handling for _ >> _, setting the result type for integer operations to the type of the left-hand-side operand. This means that though a >> b and a.shr(b) are one and the same from an evaluation standpoint, they are different when it comes to type inference.
trait core Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
fn shl_assign(&mut self, rhs: Rhs)
Performs the <<= operation.
method core Stable since 1.8.0 Version 1.100.0-nightly
doc.rust-lang.org
pub trait ShlAssign<Rhs>
The left shift assignment operator <<=.
trait core Stable since 1.8.0 Version 1.100.0-nightly
doc.rust-lang.org
fn shl(self, rhs: Rhs) -> <Self as >::Output
Performs the << operation.
method core Stable since 1.0.0 Version 1.100.0-nightly
"When picking up a lentil (Result) a pigeon (?) must consider two options. If the lentil is a good one (Ok), the pigeon simply puts it into the pot (ev..."

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.