pub enum EditSearchError {
NotFound,
EscapedNotFound,
Ambiguous {
occurrences: usize,
},
EscapedAmbiguous {
occurrences: usize,
},
}Expand description
Why an edit search failed to resolve. Callers build the user-facing message (each runtime embeds the path differently).
Variants§
NotFound
old_string not in content, no escape rescue applicable.
EscapedNotFound
old_string looked JSON-escaped, but the unescaped text is not in
the content either.
Ambiguous
Direct match is ambiguous without replace_all.
EscapedAmbiguous
Unescaped match is ambiguous without replace_all.
Trait Implementations§
Source§impl Debug for EditSearchError
impl Debug for EditSearchError
Source§impl PartialEq for EditSearchError
impl PartialEq for EditSearchError
Source§fn eq(&self, other: &EditSearchError) -> bool
fn eq(&self, other: &EditSearchError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for EditSearchError
Auto Trait Implementations§
impl Freeze for EditSearchError
impl RefUnwindSafe for EditSearchError
impl Send for EditSearchError
impl Sync for EditSearchError
impl Unpin for EditSearchError
impl UnsafeUnpin for EditSearchError
impl UnwindSafe for EditSearchError
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