pub enum Ops {
Done,
Noop((u32, u32)),
Move((u32, u32)),
Delete(u32),
Replace((u32, u32)),
}
Expand description
Representation of two differences between two states.
Variants§
Done
All instructions have been executed, ignore the rest of the array.
Noop((u32, u32))
The element from array A at the first index is equivalent to the element from array B at the second index.
Move((u32, u32))
Move the element from array A at the first index into array B before the second index.
Delete(u32)
Delete the element from array B at index
.
Replace((u32, u32))
Replace the element from array B at the second index with the element from array A at the first index.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Ops
impl RefUnwindSafe for Ops
impl Send for Ops
impl Sync for Ops
impl Unpin for Ops
impl UnwindSafe for Ops
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