Struct dofigen_lib::VecPatch
source · pub struct VecPatch<T>where
T: Clone,{ /* private fields */ }Expand description
Patch for Vec
_to replace the whole list+to append to the listnto replace the nth elementn+to append to the nth element+nto 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
Selfsource§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 Selfsource§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
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)