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
Both sides’ text and the lines the diff shows on each. A context line counts on the new side only, so it 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