Rust Search

Find the best content on Rust, curated by the community; a search engine for Rustaceans.
doc.rust-lang.org
pub const fn is_empty(&self) -> bool
Returns true if the range contains no items.
method core Stable since 1.47.0 Version 1.100.0-nightly
doc.rust-lang.org
pub const fn contains<U>(&self, item: &U) -> bool
Returns true if item is contained in the range.
method core Stable since 1.35.0 Version 1.100.0-nightly
doc.rust-lang.org
pub struct Range<Idx>
A (half-open) range bounded inclusively below and exclusively above (start..end).
struct core Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
pub fn map<U, F>(self, f: F) -> Bound<U>
Maps a Bound<T> to a Bound<U> by applying a function to the contained value (including both Included and Excluded), returning a Bound of the same kind.
method core Stable since 1.77.0 Version 1.100.0-nightly
doc.rust-lang.org
pub const fn cloned(self) -> Bound<T>
Map a Bound<&T> to a Bound<T> by cloning the contents of the bound.
method core Stable since 1.55.0 Version 1.100.0-nightly
doc.rust-lang.org
pub const fn as_ref(&self) -> Bound<&T>
Converts from &Bound<T> to Bound<&T>.
method core Stable since 1.65.0 Version 1.100.0-nightly
doc.rust-lang.org
pub enum Bound<T>
An endpoint of a range of keys.
enum core Stable since 1.17.0 Version 1.100.0-nightly
doc.rust-lang.org
fn index_mut(&mut self, index: Idx) -> &mut <Self as >::Output
Performs the mutable indexing (container[index]) operation.
method core Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
pub trait IndexMut<Idx>
Used for indexing operations (container[index]) in mutable contexts.
trait core Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
fn index(&self, index: Idx) -> &<Self as >::Output
Performs the indexing (container[index]) operation.
method core Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
type Output
The returned type after indexing.
associated_type core Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
pub trait Index<Idx>
Used for indexing operations (container[index]) in immutable contexts.
trait core Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
type Output
The returned type after the call operator is used.
associated_type core Stable since 1.12.0 Version 1.100.0-nightly
doc.rust-lang.org
pub trait FnOnce<Args>
The version of the call operator that takes a by-value receiver.
trait core Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
pub trait FnMut<Args>
The version of the call operator that takes a mutable receiver.
trait core Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
pub trait Fn<Args>
The version of the call operator that takes an immutable receiver.
trait core Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
fn drop(&mut self)
Executes the destructor for this type.
method core Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
pub trait Drop
Custom code within the destructor.
trait core Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
fn deref_mut(&mut self) -> &mut <Self as >::Target
Mutably dereferences the value.
method core Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
pub trait DerefMut
Used for mutable dereferencing operations, like in *v = 1;.
trait core Stable since 1.0.0 Version 1.100.0-nightly
"I think it's worth noting that the fact that this program fails to compile whereas the analogous Python runs but gives the wrong answer is *exactly wh..."

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.