Rust Search

Find the best content on Rust, curated by the community; a search engine for Rustaceans.
doc.rust-lang.org
pub mod i128
Redundant constants module for the i128 primitive type.
module core Stable since 1.26.0 Version 1.100.0-nightly
doc.rust-lang.org
pub trait FusedIterator
An iterator that always continues to yield None when exhausted.
trait core Stable since 1.26.0 Version 1.100.0-nightly
doc.rust-lang.org
fn zip<U>(self, other: U) -> Zip<Self, <U as >::IntoIter>
'Zips up' two iterators into a single iterator of pairs.
method core Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
fn unzip<A, B, FromA, FromB>(self) -> (FromA, FromB)
Converts an iterator of pairs into a pair of containers.
method core Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
fn try_for_each<F, R>(&mut self, f: F) -> R
An iterator method that applies a fallible function to each item in the iterator, stopping at the first error and returning that error.
method core Stable since 1.27.0 Version 1.100.0-nightly
doc.rust-lang.org
fn try_fold<B, F, R>(&mut self, init: B, f: F) -> R
An iterator method that applies a function as long as it returns successfully, producing a single, final value.
method core Stable since 1.27.0 Version 1.100.0-nightly
doc.rust-lang.org
fn take_while<P>(self, predicate: P) -> TakeWhile<Self, P>
Creates an iterator that yields elements based on a predicate.
method core Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
fn take(self, n: usize) -> Take<Self>
Creates an iterator that yields the first n elements, or fewer if the underlying iterator ends sooner.
method core Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
fn sum<S>(self) -> S
Sums the elements of an iterator.
method core Stable since 1.11.0 Version 1.100.0-nightly
doc.rust-lang.org
fn step_by(self, step: usize) -> StepBy<Self>
Creates an iterator starting at the same point, but stepping by the given amount at each iteration.
method core Stable since 1.28.0 Version 1.100.0-nightly
doc.rust-lang.org
fn skip_while<P>(self, predicate: P) -> SkipWhile<Self, P>
Creates an iterator that skips elements based on a predicate.
method core Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
fn skip(self, n: usize) -> Skip<Self>
Creates an iterator that skips the first n elements.
method core Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
fn size_hint(&self) -> (usize, Option<usize>)
Returns the bounds on the remaining length of the iterator.
method core Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
fn scan<St, B, F>(self, initial_state: St, f: F) -> Scan<Self, St, F>
An iterator adapter which, like fold, holds internal state, but unlike fold, produces a new iterator.
method core Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
fn rposition<P>(&mut self, predicate: P) -> Option<usize>
Searches for an element in an iterator from the right, returning its index.
method core Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
fn rev(self) -> Rev<Self>
Reverses an iterator's direction.
method core Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
fn reduce<F>(self, f: F) -> Option<<Self as >::Item>
Reduces the elements to a single one, by repeatedly applying a reducing operation.
method core Stable since 1.51.0 Version 1.100.0-nightly
doc.rust-lang.org
fn product<P>(self) -> P
Iterates over the entire iterator, multiplying all the elements.
method core Stable since 1.11.0 Version 1.100.0-nightly
doc.rust-lang.org
fn position<P>(&mut self, predicate: P) -> Option<usize>
Searches for an element in an iterator, returning its index.
method core Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
fn peekable(self) -> Peekable<Self>
Creates an iterator which can use the peek and peek_mut methods to look at the next element of the iterator without consuming it. See their documentation for more information.
method core Stable since 1.0.0 Version 1.100.0-nightly
"Rust doesn't give you good errors, it gives you control over errors."

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.