pub struct DiffFile<'a> { /* private fields */ }
Expand description

Description of one side of a delta.

Although this is called a “file” it could represent a file, a symbolic link, a submodule commit id, or even a tree (although that only happens if you are tracking type changes or ignored/untracked directories).

Implementations

Returns the Oid of this item.

If this entry represents an absent side of a diff (e.g. the old_file of a Added delta), then the oid returned will be zeroes.

Returns the path, in bytes, of the entry relative to the working directory of the repository.

Returns the path of the entry relative to the working directory of the repository.

Returns the size of this entry, in bytes

Returns true if file(s) are treated as binary data.

Returns true if file(s) are treated as text data.

Returns true if id value is known correct.

Returns true if file exists at this side of the delta.

Returns file mode.

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

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

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.