pub enum ResolvedChange {
Upsert {
path: PathBuf,
content: Vec<u8>,
},
Delete {
path: PathBuf,
},
}Expand description
A resolved file change produced by the merge engine’s resolve step.
After the partition and resolution phase, each touched path results in
exactly one ResolvedChange. The build step applies these changes to the
epoch tree to produce the merged tree.
Variants§
Upsert
File was added or modified; content is the new file bytes.
Used for both Added and Modified changes. The previous content
(if any) is discarded; content becomes the new blob.
Delete
File was deleted; the path is removed from the merged tree.
Implementations§
Trait Implementations§
Source§impl Clone for ResolvedChange
impl Clone for ResolvedChange
Source§fn clone(&self) -> ResolvedChange
fn clone(&self) -> ResolvedChange
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 Debug for ResolvedChange
impl Debug for ResolvedChange
Source§impl PartialEq for ResolvedChange
impl PartialEq for ResolvedChange
impl Eq for ResolvedChange
impl StructuralPartialEq for ResolvedChange
Auto Trait Implementations§
impl Freeze for ResolvedChange
impl RefUnwindSafe for ResolvedChange
impl Send for ResolvedChange
impl Sync for ResolvedChange
impl Unpin for ResolvedChange
impl UnsafeUnpin for ResolvedChange
impl UnwindSafe for ResolvedChange
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§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.