pub enum VecDiff<A> {
Replace {
values: Vec<A>,
},
InsertAt {
index: usize,
value: A,
},
UpdateAt {
index: usize,
value: A,
},
RemoveAt {
index: usize,
},
Move {
old_index: usize,
new_index: usize,
},
Push {
value: A,
},
Pop {},
Clear {},
}
Variants§
Implementations§
Trait Implementations§
Source§impl<'de, A> Deserialize<'de> for VecDiff<A>where
A: Deserialize<'de>,
impl<'de, A> Deserialize<'de> for VecDiff<A>where
A: Deserialize<'de>,
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
impl<A: Eq> Eq for VecDiff<A>
impl<A> StructuralPartialEq for VecDiff<A>
Auto Trait Implementations§
impl<A> Freeze for VecDiff<A>where
A: Freeze,
impl<A> RefUnwindSafe for VecDiff<A>where
A: RefUnwindSafe,
impl<A> Send for VecDiff<A>where
A: Send,
impl<A> Sync for VecDiff<A>where
A: Sync,
impl<A> Unpin for VecDiff<A>where
A: Unpin,
impl<A> UnwindSafe for VecDiff<A>where
A: 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