pub struct DiffElement<T: PartialEq + Clone> {
pub old_index: Option<usize>,
pub new_index: Option<usize>,
pub data: T,
}
Fields§
§old_index: Option<usize>
§new_index: Option<usize>
§data: T
Trait Implementations§
impl<T: PartialEq + Clone> StructuralPartialEq for DiffElement<T>
Auto Trait Implementations§
impl<T> Freeze for DiffElement<T>where
T: Freeze,
impl<T> RefUnwindSafe for DiffElement<T>where
T: RefUnwindSafe,
impl<T> Send for DiffElement<T>where
T: Send,
impl<T> Sync for DiffElement<T>where
T: Sync,
impl<T> Unpin for DiffElement<T>where
T: Unpin,
impl<T> UnwindSafe for DiffElement<T>where
T: UnwindSafe,
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