pub struct EditDiffResult {
pub diff: String,
pub first_changed_line: Option<usize>,
}Expand description
Result of computing diffs for a set of edits
Fields§
§diff: StringThe unified diff string
first_changed_line: Option<usize>Line number of the first change in the new file (for editor navigation)
Trait Implementations§
Source§impl Clone for EditDiffResult
impl Clone for EditDiffResult
Source§fn clone(&self) -> EditDiffResult
fn clone(&self) -> EditDiffResult
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for EditDiffResult
impl RefUnwindSafe for EditDiffResult
impl Send for EditDiffResult
impl Sync for EditDiffResult
impl Unpin for EditDiffResult
impl UnsafeUnpin for EditDiffResult
impl UnwindSafe for EditDiffResult
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