Enum markov_generator::AddEdges
source · 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 None
s
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
.