pub struct VecPatch<T>where
T: Clone,{ /* private fields */ }
Expand description
Patch for Vec
_
to replace the whole list+
to append to the listn
to replace the nth elementn+
to append to the nth element+n
to prepend to the nth element
Trait Implementations§
Source§impl<'de, T> Deserialize<'de> for VecPatch<T>where
T: Clone + Deserialize<'de>,
impl<'de, T> Deserialize<'de> for VecPatch<T>where
T: Clone + 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
Source§impl<T> Patch<VecPatch<T>> for Vec<T>where
T: Clone,
impl<T> Patch<VecPatch<T>> for Vec<T>where
T: Clone,
Source§fn into_patch(self) -> VecPatch<T>
fn into_patch(self) -> VecPatch<T>
Returns a patch that when applied turns any struct of the same type into
Self
Source§fn into_patch_by_diff(self, _previous_struct: Self) -> VecPatch<T>
fn into_patch_by_diff(self, _previous_struct: Self) -> VecPatch<T>
Returns a patch that when applied turns
previous_struct
into Self
Source§fn new_empty_patch() -> VecPatch<T>
fn new_empty_patch() -> VecPatch<T>
Get an empty patch instance
impl<T> StructuralPartialEq for VecPatch<T>where
T: Clone,
Auto Trait Implementations§
impl<T> Freeze for VecPatch<T>
impl<T> RefUnwindSafe for VecPatch<T>where
T: RefUnwindSafe,
impl<T> Send for VecPatch<T>where
T: Send,
impl<T> Sync for VecPatch<T>where
T: Sync,
impl<T> Unpin for VecPatch<T>where
T: Unpin,
impl<T> UnwindSafe for VecPatch<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