pub enum Control {
SkipLeft,
SkipRight,
Yield,
Break,
}Expand description
The action to take given the current pair of items.
This is the return value of the closure passed to the lockstep function. See its
documentation for more detail.
Variants§
SkipLeft
Drop the current item from the left iterator.
SkipRight
Drop the current item from the right iterator.
Yield
Yield the pair and step both the left and the right iterator.
Break
Drop the pair and return None.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Control
impl RefUnwindSafe for Control
impl Send for Control
impl Sync for Control
impl Unpin for Control
impl UnwindSafe for Control
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