Struct async_std::stream::Fuse[][src]

pub struct Fuse<S> { /* fields omitted */ }
Expand description

A stream that yields None forever after the underlying stream yields None once.

This struct is created by the fuse method on Stream. See its documentation for more.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

The type of items yielded by this stream.

Attempts to receive the next item from the stream. Read more

Advances the stream and returns the next value. Read more

Creates a stream that yields its first n elements. Read more

Creates a stream that yields elements based on a predicate. Read more

This is supported on unstable only.

Limit the amount of items yielded per timeslice in a stream. Read more

Creates a stream that yields each stepth element. Read more

Takes two streams and creates a new stream over both in sequence. Read more

Creates an stream which copies all of its elements. Read more

Creates an stream which copies all of its elements. Read more

Creates a stream that yields the provided values infinitely and in order. Read more

Creates a stream that gives the current element’s count as well as the next value. Read more

This is supported on unstable only.

Creates a stream that is delayed before it starts yielding items. Read more

Takes a closure and creates a stream that calls that closure on every element of this stream. Read more

A combinator that does something with each element in the stream, passing the value on. Read more

Returns the last element of the stream. Read more

Creates a stream which ends after the first None. Read more

Creates a stream that uses a predicate to determine if an element should be yielded. Read more

This is supported on unstable only.

Creates an stream that works like map, but flattens nested structure. Read more

This is supported on unstable only.

Creates an stream that flattens nested structure. Read more

Both filters and maps a stream. Read more

Returns the element that gives the minimum value with respect to the specified key function. If several elements are equally minimum, the first element is returned. If the stream is empty, None is returned. Read more

Returns the element that gives the maximum value with respect to the specified key function. If several elements are equally maximum, the first element is returned. If the stream is empty, None is returned. Read more

Returns the element that gives the minimum value with respect to the specified comparison function. If several elements are equally minimum, the first element is returned. If the stream is empty, None is returned. Read more

Returns the element that gives the maximum value. If several elements are equally maximum, the first element is returned. If the stream is empty, None is returned. Read more

Returns the element that gives the minimum value. If several elements are equally minimum, the first element is returned. If the stream is empty, None is returned. Read more

Returns the element that gives the maximum value with respect to the specified comparison function. If several elements are equally maximum, the first element is returned. If the stream is empty, None is returned. Read more

Returns the nth element of the stream. Read more

Tests if every element of the stream matches a predicate. Read more

Searches for an element in a stream that satisfies a predicate. Read more

Applies function to the elements of stream and returns the first non-none result. Read more

A combinator that applies a function to every element in a stream producing a single, final value. Read more

This is supported on unstable only.

A combinator that applies a function to every element in a stream creating two collections from it. Read more

Call a closure on each element of the stream. Read more

Tests if any element of the stream matches a predicate. Read more

This is supported on unstable only.

Borrows an stream, rather than consuming it. Read more

A stream adaptor similar to fold that holds internal state and produces a new stream. Read more

Combinator that skips elements based on a predicate. Read more

Creates a combinator that skips the first n elements. Read more

This is supported on unstable only.

Await a stream or times out after a duration of time. Read more

A combinator that applies a function as long as it returns successfully, producing a single, final value. Immediately returns the error when the function returns unsuccessfully. Read more

Applies a falliable function to each element in a stream, stopping at first error and returning it. Read more

‘Zips up’ two streams into a single stream of pairs. Read more

This is supported on unstable only.

Converts an stream of pairs into a pair of containers. Read more

This is supported on unstable only.

Transforms a stream into a collection. Read more

This is supported on unstable only.

Combines multiple streams into a single stream of all their outputs. Read more

Lexicographically compares the elements of this Stream with those of another. Read more

Searches for an element in a Stream that satisfies a predicate, returning its index. Read more

Lexicographically compares the elements of this Stream with those of another using ‘Ord’. Read more

This is supported on unstable only.

Counts the number of elements in the stream. Read more

Determines if the elements of this Stream are lexicographically not equal to those of another. Read more

Determines if the elements of this Stream are lexicographically greater than or equal to those of another. Read more

Determines if the elements of this Stream are lexicographically equal to those of another. Read more

Determines if the elements of this Stream are lexicographically greater than those of another. Read more

Determines if the elements of this Stream are lexicographically less or equal to those of another. Read more

Determines if the elements of this Stream are lexicographically less than those of another. Read more

This is supported on unstable only.

Sums the elements of a stream. Read more

This is supported on unstable only.

Multiplies all elements of the stream. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.