Enum chumsky::stream::Flat

source ·
pub enum Flat<I, Iter> {
    Single(I),
    Many(Iter),
}
Expand description

A utility type used to flatten input trees. See Stream::from_nested.

Variants§

§

Single(I)

The input tree flattens into a single input.

§

Many(Iter)

The input tree flattens into many sub-trees.

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
The number of items that this chain link consists of.
Append the elements in this link to the chain.

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.