Rust Search

Find the best content on Rust, curated by the community; a search engine for Rustaceans.
doc.rust-lang.org
pub trait Extend<A>
Extend a collection with the contents of an iterator.
trait core Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
fn sum<I>(iter: I) -> Self
Takes an iterator and generates Self from the elements by "summing up" the items.
associated_function core Stable since 1.12.0 Version 1.100.0-nightly
doc.rust-lang.org
pub trait Sum<A>
Trait to represent types that can be created by summing up an iterator.
trait core Stable since 1.12.0 Version 1.100.0-nightly
doc.rust-lang.org
fn product<I>(iter: I) -> Self
Takes an iterator and generates Self from the elements by multiplying the items.
associated_function core Stable since 1.12.0 Version 1.100.0-nightly
doc.rust-lang.org
pub trait Product<A>
Trait to represent types that can be created by multiplying elements of an iterator.
trait core Stable since 1.12.0 Version 1.100.0-nightly
doc.rust-lang.org
pub fn successors<T, F>(first: Option<T>, succ: F) -> Successors<T, F>
Creates an iterator which, starting from an initial item, computes each successive item from the preceding one.
function core Stable since 1.34.0 Version 1.100.0-nightly
doc.rust-lang.org
pub struct Successors<T, F>
An iterator which, starting from an initial item, computes each successive item from the preceding one.
struct core Stable since 1.34.0 Version 1.100.0-nightly
doc.rust-lang.org
pub fn repeat_with<A, F>(repeater: F) -> RepeatWith<F>
Creates a new iterator that repeats elements of type A endlessly by applying the provided closure, the repeater, F: FnMut() -> A.
function core Stable since 1.28.0 Version 1.100.0-nightly
doc.rust-lang.org
pub struct RepeatWith<F>
An iterator that repeats elements of type A endlessly by applying the provided closure F: FnMut() -> A.
struct core Stable since 1.28.0 Version 1.100.0-nightly
doc.rust-lang.org
pub fn repeat_n<T>(element: T, count: usize) -> RepeatN<T>
Creates a new iterator that repeats a single element a given number of times.
function core Stable since 1.82.0 Version 1.100.0-nightly
doc.rust-lang.org
pub struct RepeatN<A>
An iterator that repeats an element an exact number of times.
struct core Stable since 1.82.0 Version 1.100.0-nightly
doc.rust-lang.org
pub fn repeat<T>(elt: T) -> Repeat<T>
Creates a new iterator that endlessly repeats a single element.
function core Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
pub struct Repeat<A>
An iterator that repeats an element endlessly.
struct core Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
pub fn once_with<A, F>(make: F) -> OnceWith<F>
Creates an iterator that lazily generates a value exactly once by invoking the provided closure.
function core Stable since 1.43.0 Version 1.100.0-nightly
doc.rust-lang.org
pub struct OnceWith<F>
An iterator that yields a single element of type A by applying the provided closure F: FnOnce() -> A.
struct core Stable since 1.43.0 Version 1.100.0-nightly
doc.rust-lang.org
pub fn once<T>(value: T) -> Once<T>
Creates an iterator that yields an element exactly once.
function core Stable since 1.2.0 Version 1.100.0-nightly
doc.rust-lang.org
pub struct Once<T>
An iterator that yields an element exactly once.
struct core Stable since 1.2.0 Version 1.100.0-nightly
doc.rust-lang.org
pub fn from_fn<T, F>(f: F) -> FromFn<F>
Creates an iterator with the provided closure F: FnMut() -> Option<T> as its next method.
function core Stable since 1.34.0 Version 1.100.0-nightly
doc.rust-lang.org
pub struct FromFn<F>
An iterator where each iteration calls the provided closure F: FnMut() -> Option<T>.
struct core Stable since 1.34.0 Version 1.100.0-nightly
doc.rust-lang.org
pub const fn empty<T>() -> Empty<T>
Creates an iterator that yields nothing.
function core Stable since 1.2.0 Version 1.100.0-nightly
"Any sufficiently complicated C project contains an adhoc, informally specified, bug ridden, slow implementation of half of cargo."

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.