pub enum EditType<T> {
Addition(T),
Deletion(T),
}
Expand description
The different types of elements that can be in an edit script
Variants§
Addition(T)
An element that was added in the edit script
Deletion(T)
An element that was deleted in the edit script
Trait Implementations§
impl<T: Eq> Eq for EditType<T>
impl<T> StructuralPartialEq for EditType<T>
Auto Trait Implementations§
impl<T> Freeze for EditType<T>where
T: Freeze,
impl<T> RefUnwindSafe for EditType<T>where
T: RefUnwindSafe,
impl<T> Send for EditType<T>where
T: Send,
impl<T> Sync for EditType<T>where
T: Sync,
impl<T> Unpin for EditType<T>where
T: Unpin,
impl<T> UnwindSafe for EditType<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