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 reformat_only: 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).
reformat_only: boolTrue on a paired deleted/added line the structural algorithm found to be a pure reformat (identical token structure, e.g. reindentation): the renderer dims it, leaving red/green for an actual change.
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