pub struct Line {
pub kind: LineKind,
pub old_no: Option<usize>,
pub new_no: Option<usize>,
pub text: String,
}Expand description
One line of a hunk.
Fields§
§kind: LineKindWhat it is.
old_no: Option<usize>1-based line number in the old version.
new_no: Option<usize>1-based line number in the new version.
text: StringThe text, without its newline.
Trait Implementations§
impl Eq for Line
impl StructuralPartialEq for Line
Auto Trait Implementations§
impl Freeze for Line
impl RefUnwindSafe for Line
impl Send for Line
impl Sync for Line
impl Unpin for Line
impl UnsafeUnpin for Line
impl UnwindSafe for Line
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