pub enum IncrementalEditBatchError {
BackwardRange {
index: usize,
start_byte: usize,
old_end_byte: usize,
},
OverlappingEdits {
left_index: usize,
right_index: usize,
},
}Expand description
Validation failures for an IncrementalEditSet batch.
Variants§
BackwardRange
An edit uses a backward range (start_byte > old_end_byte).
index is the position of the offending edit in the original,
unsorted order at the time normalize_and_validate was called.
OverlappingEdits
Two normalized edits overlap in the old-source byte space.
left_index and right_index are positions in the post-sort
order produced by IncrementalEditSet::sort_reverse_deterministic,
not in the original insertion order.
Trait Implementations§
Source§impl Clone for IncrementalEditBatchError
impl Clone for IncrementalEditBatchError
Source§fn clone(&self) -> IncrementalEditBatchError
fn clone(&self) -> IncrementalEditBatchError
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 IncrementalEditBatchError
impl Debug for IncrementalEditBatchError
impl Eq for IncrementalEditBatchError
impl StructuralPartialEq for IncrementalEditBatchError
Auto Trait Implementations§
impl Freeze for IncrementalEditBatchError
impl RefUnwindSafe for IncrementalEditBatchError
impl Send for IncrementalEditBatchError
impl Sync for IncrementalEditBatchError
impl Unpin for IncrementalEditBatchError
impl UnsafeUnpin for IncrementalEditBatchError
impl UnwindSafe for IncrementalEditBatchError
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