pub struct EditLog { /* private fields */ }Expand description
Log of edit operations performed during merge.
The edit log supports checkpoints for transactional semantics - operations can be rolled back if a merge path fails.
Implementations§
Source§impl EditLog
impl EditLog
Sourcepub fn checkpoint(&mut self)
pub fn checkpoint(&mut self)
Creates a checkpoint for potential rollback.
Sourcepub fn edit_count(&self) -> usize
pub fn edit_count(&self) -> usize
Returns the number of edit operations.
Sourcepub fn count_by_type(&self, edit_type: EditType) -> usize
pub fn count_by_type(&self, edit_type: EditType) -> usize
Counts operations by type.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for EditLog
impl !RefUnwindSafe for EditLog
impl !Send for EditLog
impl !Sync for EditLog
impl Unpin for EditLog
impl !UnwindSafe for EditLog
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