Struct unidiff::Line [] [src]

pub struct Line {
    pub source_line_no: Option<usize>,
    pub target_line_no: Option<usize>,
    pub diff_line_no: usize,
    pub line_type: String,
    pub value: String,
}

A diff line

Fields

Source file line number

Target file line number

Diff file line number

Diff line type

Diff line content value

Methods

impl Line
[src]

[src]

[src]

Diff line type is added

[src]

Diff line type is removed

[src]

Diff line type is context

Trait Implementations

impl Debug for Line
[src]

[src]

Formats the value using the given formatter. Read more

impl Clone for Line
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl PartialEq for Line
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.

impl Eq for Line
[src]

impl Hash for Line
[src]

[src]

Feeds this value into the given [Hasher]. Read more

1.3.0
[src]

Feeds a slice of this type into the given [Hasher]. Read more

impl Display for Line
[src]

[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl Send for Line

impl Sync for Line