pub enum EltDelta<T: Core> {
Edit {
index: usize,
item: <T as Core>::Delta,
},
Remove {
count: usize,
},
Add(<T as Core>::Delta),
}
Variants§
Edit
Edit a value at a given index
.
Remove
Remove count
elements from the end of the Vec.
Add(<T as Core>::Delta)
Add a value.
Trait Implementations§
source§impl<'de, T> Deserialize<'de> for EltDelta<T>where
T: Deserialize<'de> + Core,
impl<'de, T> Deserialize<'de> for EltDelta<T>where T: Deserialize<'de> + Core,
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl<T: PartialEq + Core> PartialEq<EltDelta<T>> for EltDelta<T>
impl<T: PartialEq + Core> PartialEq<EltDelta<T>> for EltDelta<T>
impl<T: Core> StructuralPartialEq for EltDelta<T>
Auto Trait Implementations§
impl<T> RefUnwindSafe for EltDelta<T>where <T as Core>::Delta: RefUnwindSafe,
impl<T> Send for EltDelta<T>where <T as Core>::Delta: Send,
impl<T> Sync for EltDelta<T>where <T as Core>::Delta: Sync,
impl<T> Unpin for EltDelta<T>where <T as Core>::Delta: Unpin,
impl<T> UnwindSafe for EltDelta<T>where <T as Core>::Delta: 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