pub enum AddEdges {
    Start,
    End,
    Both,
    Neither,
}
Expand description

Controls the behavior of Chain::add_all.

This enum determines whether the start or end of the provided items can be used as start or end data for the chain (see individual variants’ descriptions).

Variants§

§

Start

Allows the start (first Chain::depth items) of the provided iterator to be returned by a call to Chain::get_start (or increases the chance of this happening).

Specifically, this increases the chance that a sequence of Nones could be followed by those starting items in the provided iterator.

§

End

Increases the chance that the last Chain::depth items of the provided iterator could be followed by None.

§

Both

Performs the behavior of both Self::Start and Self::End.

§

Neither

Performs neither the behavior of Self::Start nor Self::End.

Trait Implementations§

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
This method tests for self and other values to be equal, and is used by ==.
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.

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 resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
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.