pub struct LensFile {
pub path: String,
pub old_text: Option<String>,
pub new_text: Option<String>,
pub old_lines: HashSet<u32>,
pub new_lines: HashSet<u32>,
}Expand description
One file of the diff, as the worker reads it: both sides’ text and the line numbers the diff shows on each, a deleted line on the old side and an added or context line on the new one, so a context line counts once.
Fields§
§path: String§old_text: Option<String>§new_text: Option<String>§old_lines: HashSet<u32>§new_lines: HashSet<u32>Trait Implementations§
Auto Trait Implementations§
impl Freeze for LensFile
impl RefUnwindSafe for LensFile
impl Send for LensFile
impl Sync for LensFile
impl Unpin for LensFile
impl UnsafeUnpin for LensFile
impl UnwindSafe for LensFile
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