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