pub enum TextPatchError {
InvalidRange {
start: usize,
end: usize,
},
OffsetOutOfBounds {
offset: usize,
len: usize,
},
InvalidUtf8Boundary {
offset: usize,
},
Conflict(PatchConflict),
BlockNotFound {
block_name: String,
},
UnclosedBlock {
block_name: String,
},
AmbiguousEntry {
block_name: String,
key: String,
},
}Variants§
InvalidRange
OffsetOutOfBounds
InvalidUtf8Boundary
Conflict(PatchConflict)
BlockNotFound
UnclosedBlock
AmbiguousEntry
Trait Implementations§
Source§impl Clone for TextPatchError
impl Clone for TextPatchError
Source§fn clone(&self) -> TextPatchError
fn clone(&self) -> TextPatchError
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 TextPatchError
impl Debug for TextPatchError
Source§impl PartialEq for TextPatchError
impl PartialEq for TextPatchError
impl Eq for TextPatchError
impl StructuralPartialEq for TextPatchError
Auto Trait Implementations§
impl Freeze for TextPatchError
impl RefUnwindSafe for TextPatchError
impl Send for TextPatchError
impl Sync for TextPatchError
impl Unpin for TextPatchError
impl UnsafeUnpin for TextPatchError
impl UnwindSafe for TextPatchError
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