pub struct DiffLine {
pub kind: LineKind,
pub old_no: Option<u32>,
pub new_no: Option<u32>,
pub text: String,
pub emphasis: Vec<Range<usize>>,
pub moved: bool,
}Fields§
§kind: LineKind§old_no: Option<u32>§new_no: Option<u32>§text: StringLine content without the trailing newline.
emphasis: Vec<Range<usize>>Byte ranges within text to emphasize (intra-line changes).
moved: boolAn added/deleted line the semantic engine found unchanged (only reindented or moved). The UI marks it with a thin rail instead of a full +/- background. Always false for the textual engine.
Implementations§
Trait Implementations§
impl Eq for DiffLine
impl StructuralPartialEq for DiffLine
Auto Trait Implementations§
impl Freeze for DiffLine
impl RefUnwindSafe for DiffLine
impl Send for DiffLine
impl Sync for DiffLine
impl Unpin for DiffLine
impl UnsafeUnpin for DiffLine
impl UnwindSafe for DiffLine
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