pub struct Seq<T>(_);
Expand description

A lazily evaluated sequence of functions.

Implementations

Constructs a new, empty Seq<T>.

Returns true if the sequence contains no elements.

Returns the number of elements in the sequence, also referred to as its ‘length’.

Constructs a new, empty Seq<T> with the specified capacity.

Appends the provided function to the back of the collection.

Forces evaluation of the last function in the sequence, returning the result.

Evaluates all unevaluated functions within the Seq.

Converts a Seq<T> to a Vec<T> by forcing evaluation of all functions.

Converts a Seq<T> to a Vec<Lazy<T>> without evaluating any additional functions.

Gets an immutable reference to the value at the specified index.

Gets a mutable reference to the value at the specified index.

Trait Implementations

Returns the “default value” for a type. Read more

Converts to this type from the input type.

Converts to this type from the input type.

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

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

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.