Struct unidiff::PatchedFile [] [src]

pub struct PatchedFile {
    pub source_file: String,
    pub source_timestamp: Option<String>,
    pub target_file: String,
    pub target_timestamp: Option<String>,
    // some fields omitted
}

Patch updated file, contains a list of Hunks

You can iterate over it to get Hunks.

Fields

Source file name

Source file timestamp

Target file name

Target file timestamp

Methods

impl PatchedFile
[src]

[src]

Initialize a new PatchedFile instance

[src]

Initialize a new PatchedFile instance with hunks

[src]

Patched file relative path

[src]

Count of lines added

[src]

Count of lines removed

[src]

Is this file newly added

[src]

Is this file removed

[src]

Is this file modified

[src]

Count of hunks

[src]

Trait Implementations

impl Debug for PatchedFile
[src]

[src]

Formats the value using the given formatter. Read more

impl Clone for PatchedFile
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl PartialEq for PatchedFile
[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 PatchedFile
[src]

impl Hash for PatchedFile
[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 PatchedFile
[src]

[src]

Formats the value using the given formatter. Read more

impl IntoIterator for PatchedFile
[src]

The type of the elements being iterated over.

Which kind of iterator are we turning this into?

[src]

Creates an iterator from a value. Read more

impl Index<usize> for PatchedFile
[src]

The returned type after indexing.

[src]

Performs the indexing (container[index]) operation.

impl IndexMut<usize> for PatchedFile
[src]

[src]

Performs the mutable indexing (container[index]) operation.

Auto Trait Implementations

impl Send for PatchedFile

impl Sync for PatchedFile