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 any of the first Chain::depth
items of the provided iterator
to be returned by calling Chain::get
with the items preceding it
(of which there are necessarily fewer than Chain::depth
, and
potentially none). This also means that Chain::generate
may yield
these items as its initial elements.
End
Allows the last Chain::depth
items of the provided iterator (or
fewer, if it doesn’t yield that many) to be considered the end of the
sequence, represented by a return value of None
from
Chain::get
.
Both
Performs the behavior of both Self::Start
and Self::End
.
Neither
Performs the behavior of neither Self::Start
nor Self::End
.