Rust Search

Find the best content on Rust, curated by the community; a search engine for Rustaceans.
doc.rust-lang.org
fn partition<B, F>(self, f: F) -> (B, B)
Consumes an iterator, creating two collections from it.
method core Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
fn partial_cmp<I>(self, other: I) -> Option<Ordering>
Lexicographically compares the PartialOrd elements of this Iterator with those of another. The comparison works like short-circuit evaluation, returning a result without comparing the remaining elements. As soon as an order can be determined, the evaluation stops and a result is returned.
method core Stable since 1.5.0 Version 1.100.0-nightly
doc.rust-lang.org
fn nth(&mut self, n: usize) -> Option<<Self as >::Item>
Returns the nth element of the iterator.
method core Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
fn next(&mut self) -> Option<<Self as >::Item>
Advances the iterator and returns the next value.
method core Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
fn ne<I>(self, other: I) -> bool
Determines if the elements of this Iterator are not equal to those of another.
method core Stable since 1.5.0 Version 1.100.0-nightly
doc.rust-lang.org
fn min_by_key<B, F>(self, f: F) -> Option<<Self as >::Item>
Returns the element that gives the minimum value from the specified function.
method core Stable since 1.6.0 Version 1.100.0-nightly
doc.rust-lang.org
fn min_by<F>(self, compare: F) -> Option<<Self as >::Item>
Returns the element that gives the minimum value with respect to the specified comparison function.
method core Stable since 1.15.0 Version 1.100.0-nightly
doc.rust-lang.org
fn min(self) -> Option<<Self as >::Item>
Returns the minimum element of an iterator.
method core Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
fn max_by_key<B, F>(self, f: F) -> Option<<Self as >::Item>
Returns the element that gives the maximum value from the specified function.
method core Stable since 1.6.0 Version 1.100.0-nightly
doc.rust-lang.org
fn max_by<F>(self, compare: F) -> Option<<Self as >::Item>
Returns the element that gives the maximum value with respect to the specified comparison function.
method core Stable since 1.15.0 Version 1.100.0-nightly
doc.rust-lang.org
fn max(self) -> Option<<Self as >::Item>
Returns the maximum element of an iterator.
method core Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
fn map_while<B, P>(self, predicate: P) -> MapWhile<Self, P>
Creates an iterator that both yields elements based on a predicate and maps.
method core Stable since 1.57.0 Version 1.100.0-nightly
doc.rust-lang.org
fn map<B, F>(self, f: F) -> Map<Self, F>
Takes a closure and creates an iterator which calls that closure on each element.
method core Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
fn lt<I>(self, other: I) -> bool
Determines if the elements of this Iterator are lexicographically less than those of another.
method core Stable since 1.5.0 Version 1.100.0-nightly
doc.rust-lang.org
fn le<I>(self, other: I) -> bool
Determines if the elements of this Iterator are lexicographically less or equal to those of another.
method core Stable since 1.5.0 Version 1.100.0-nightly
doc.rust-lang.org
fn last(self) -> Option<<Self as >::Item>
Consumes the iterator, returning the last element.
method core Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
fn is_sorted_by_key<F, K>(self, f: F) -> bool
Checks if the elements of this iterator are sorted using the given key extraction function.
method core Stable since 1.82.0 Version 1.100.0-nightly
doc.rust-lang.org
fn is_sorted_by<F>(self, compare: F) -> bool
Checks if the elements of this iterator are sorted using the given comparator function.
method core Stable since 1.82.0 Version 1.100.0-nightly
doc.rust-lang.org
fn is_sorted(self) -> bool
Checks if the elements of this iterator are sorted.
method core Stable since 1.82.0 Version 1.100.0-nightly
doc.rust-lang.org
fn inspect<F>(self, f: F) -> Inspect<Self, F>
Does something with each element of an iterator, passing the value on.
method core Stable since 1.0.0 Version 1.100.0-nightly
""I'll never!" "No, never is in the 2024 Edition." "But never can't be this year, it's never!" "Well we're trying to make it happen now!" "But never is..."

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.