pub struct StructuredLine {
pub kind: StructuredLineKind,
pub old: Option<usize>,
pub new: Option<usize>,
pub segments: Vec<StructuredSegment>,
pub no_newline_at_eof: bool,
}Expand description
One rendered line in a structured hunk.
Fields§
§kind: StructuredLineKindObject type name when known (commit, tree, etc.).
old: Option<usize>Old for this item.
new: Option<usize>New for this item.
segments: Vec<StructuredSegment>Segments for this item.
no_newline_at_eof: boolGit \ No newline at end of file on this side.
Trait Implementations§
Source§impl Clone for StructuredLine
impl Clone for StructuredLine
Source§impl Debug for StructuredLine
impl Debug for StructuredLine
impl Eq for StructuredLine
Source§impl PartialEq for StructuredLine
impl PartialEq for StructuredLine
impl StructuralPartialEq for StructuredLine
Auto Trait Implementations§
impl Freeze for StructuredLine
impl RefUnwindSafe for StructuredLine
impl Send for StructuredLine
impl Sync for StructuredLine
impl Unpin for StructuredLine
impl UnsafeUnpin for StructuredLine
impl UnwindSafe for StructuredLine
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