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
.
Trait Implementations§
impl Copy for AddEdges
impl Eq for AddEdges
impl StructuralPartialEq for AddEdges
Auto Trait Implementations§
impl Freeze for AddEdges
impl RefUnwindSafe for AddEdges
impl Send for AddEdges
impl Sync for AddEdges
impl Unpin for AddEdges
impl UnwindSafe for AddEdges
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more