pub struct DiffLine {
pub kind: DiffLineKind,
pub a_line: Option<u32>,
pub b_line: Option<u32>,
pub content: String,
}Expand description
One line in a hunk.
Fields§
§kind: DiffLineKindWhether this is +, -, or context.
a_line: Option<u32>1-based line number on the a side; None for inserts.
b_line: Option<u32>1-based line number on the b side; None for deletes.
content: StringLine content WITHOUT the trailing newline (we re-add on render).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for DiffLine
impl<'de> Deserialize<'de> for DiffLine
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
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