pub struct ResolvedEditSearch {
pub old_string: String,
pub new_string: String,
pub occurrences: usize,
pub repair: Option<&'static str>,
}Expand description
Successful resolution of an edit’s search/replace strings against file
content. repair is Some("json_escape_unwrapped") when the match
only succeeded after unescaping literal \n / \t / \r sequences —
weak models frequently double-escape control characters when emitting
old_string through JSON tool arguments.
Fields§
§old_string: String§new_string: String§occurrences: usize§repair: Option<&'static str>Trait Implementations§
Auto Trait Implementations§
impl Freeze for ResolvedEditSearch
impl RefUnwindSafe for ResolvedEditSearch
impl Send for ResolvedEditSearch
impl Sync for ResolvedEditSearch
impl Unpin for ResolvedEditSearch
impl UnsafeUnpin for ResolvedEditSearch
impl UnwindSafe for ResolvedEditSearch
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