Struct git2::DiffLine[][src]

pub struct DiffLine<'a> { /* fields omitted */ }
Expand description

Structure describing a line (or data span) of a diff.

Implementations

Line number in old file or None for added line

Line number in new file or None for deleted line

Number of newline characters in content

Offset in the original file to the content

Content of this line as bytes.

Sigil showing the origin of this DiffLine.

  • - Line context
  • + - Line addition
  • - - Line deletion
  • = - Context (End of file)
  • > - Add (End of file)
  • < - Remove (End of file)
  • F - File header
  • H - Hunk header
  • B - Line binary

Trait Implementations

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.