pub struct DiffMove {
pub from: usize,
pub to: usize,
}Expand description
Describes the move of an item in a Diff.
Fields§
§from: usizeThe index in the list of “old items” that the item has moved from.
to: usizeThe index in the list of “new items” that the item has moved to.
Trait Implementations§
Source§impl Ord for DiffMove
impl Ord for DiffMove
Source§impl PartialOrd for DiffMove
impl PartialOrd for DiffMove
impl Copy for DiffMove
impl Eq for DiffMove
impl StructuralPartialEq for DiffMove
Auto Trait Implementations§
impl Freeze for DiffMove
impl RefUnwindSafe for DiffMove
impl Send for DiffMove
impl Sync for DiffMove
impl Unpin for DiffMove
impl UnwindSafe for DiffMove
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> CompatExt for T
impl<T> CompatExt for T
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more