pub enum Order {
OneByOne,
Bulk,
}Expand description
Which order LMOVEM leaves the elements it moved in.
It only makes a difference when both ends are the same one, which is worth
knowing before reading any further. Taking from the left and putting on the
right hands the block over in the order it was in either way, and so does
taking from the right and putting on the left. It is LEFT LEFT and RIGHT RIGHT where the two answers come apart, because those are the cases where
each element lands in front of the one before it.
Variants§
OneByOne
OBO. Exactly as if LMOVE had been sent that many times, so a
destination end that puts each element in front of the last leaves the
block reversed.
Bulk
BULK. The block keeps the order it had in the source whatever the two
ends are.
Trait Implementations§
impl Copy for Order
impl Eq for Order
impl StructuralPartialEq for Order
Auto Trait Implementations§
impl Freeze for Order
impl RefUnwindSafe for Order
impl Send for Order
impl Sync for Order
impl Unpin for Order
impl UnsafeUnpin for Order
impl UnwindSafe for Order
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