pub struct VecDeepPatch<T, P>{ /* private fields */ }Expand description
Patch for Vec
_to replace the whole list+to append to the listnto replace the nth elementn<to patch the nth elementn+to append to the nth element+nto prepend to the nth element
Trait Implementations§
source§impl<T, P> Clone for VecDeepPatch<T, P>
impl<T, P> Clone for VecDeepPatch<T, P>
source§fn clone(&self) -> VecDeepPatch<T, P>
fn clone(&self) -> VecDeepPatch<T, P>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl<T, P> Debug for VecDeepPatch<T, P>
impl<T, P> Debug for VecDeepPatch<T, P>
source§impl<T, P> Default for VecDeepPatch<T, P>
impl<T, P> Default for VecDeepPatch<T, P>
source§fn default() -> VecDeepPatch<T, P>
fn default() -> VecDeepPatch<T, P>
Returns the “default value” for a type. Read more
source§impl<'de, T, P> Deserialize<'de> for VecDeepPatch<T, P>
impl<'de, T, P> Deserialize<'de> for VecDeepPatch<T, P>
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, P> Merge for VecDeepPatch<T, P>
impl<T, P> Merge for VecDeepPatch<T, P>
source§impl<T, P> PartialEq for VecDeepPatch<T, P>
impl<T, P> PartialEq for VecDeepPatch<T, P>
source§impl<T, P> Patch<VecDeepPatch<T, P>> for Vec<T>
impl<T, P> Patch<VecDeepPatch<T, P>> for Vec<T>
source§fn apply(&mut self, patch: VecDeepPatch<T, P>)
fn apply(&mut self, patch: VecDeepPatch<T, P>)
Apply a patch
source§fn into_patch(self) -> VecDeepPatch<T, P>
fn into_patch(self) -> VecDeepPatch<T, P>
Returns a patch that when applied turns any struct of the same type into
Selfsource§fn into_patch_by_diff(self, _previous_struct: Self) -> VecDeepPatch<T, P>
fn into_patch_by_diff(self, _previous_struct: Self) -> VecDeepPatch<T, P>
Returns a patch that when applied turns
previous_struct into Selfsource§fn new_empty_patch() -> VecDeepPatch<T, P>
fn new_empty_patch() -> VecDeepPatch<T, P>
Get an empty patch instance
impl<T, P> StructuralPartialEq for VecDeepPatch<T, P>
Auto Trait Implementations§
impl<T, P> Freeze for VecDeepPatch<T, P>
impl<T, P> RefUnwindSafe for VecDeepPatch<T, P>where
T: RefUnwindSafe,
P: RefUnwindSafe,
impl<T, P> Send for VecDeepPatch<T, P>
impl<T, P> Sync for VecDeepPatch<T, P>
impl<T, P> Unpin for VecDeepPatch<T, P>
impl<T, P> UnwindSafe for VecDeepPatch<T, P>where
T: UnwindSafe,
P: 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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)