pub enum TapeDiffOp<'a> {
Add {
path: String,
value: TapeValueOwned,
},
Remove {
path: String,
},
Replace {
path: String,
value: TapeValueOwned,
},
Move {
from: String,
path: String,
},
Copy {
from: String,
path: String,
},
AddRef {
path: String,
tape_index: usize,
_marker: PhantomData<&'a ()>,
},
ReplaceRef {
path: String,
tape_index: usize,
_marker: PhantomData<&'a ()>,
},
}Expand description
A tape diff operation
Variants§
Add
Add a value at a path
Remove
Remove the value at a path
Replace
Replace the value at a path
Move
Move a value from one path to another
Copy
Copy a value from one path to another
AddRef
Reference to a value in the target tape (zero-copy variant)
Fields
§
_marker: PhantomData<&'a ()>Lifetime marker
ReplaceRef
Reference to a value in the target tape (zero-copy variant)
Trait Implementations§
Source§impl<'a> Clone for TapeDiffOp<'a>
impl<'a> Clone for TapeDiffOp<'a>
Source§fn clone(&self) -> TapeDiffOp<'a>
fn clone(&self) -> TapeDiffOp<'a>
Returns a duplicate 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<'a> Debug for TapeDiffOp<'a>
impl<'a> Debug for TapeDiffOp<'a>
Source§impl<'a> PartialEq for TapeDiffOp<'a>
impl<'a> PartialEq for TapeDiffOp<'a>
impl<'a> StructuralPartialEq for TapeDiffOp<'a>
Auto Trait Implementations§
impl<'a> Freeze for TapeDiffOp<'a>
impl<'a> RefUnwindSafe for TapeDiffOp<'a>
impl<'a> Send for TapeDiffOp<'a>
impl<'a> Sync for TapeDiffOp<'a>
impl<'a> Unpin for TapeDiffOp<'a>
impl<'a> UnwindSafe for TapeDiffOp<'a>
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