[][src]Struct git2::DiffFile

pub struct DiffFile<'a> { /* fields omitted */ }

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).

Methods

impl<'a> DiffFile<'a>
[src]

pub fn id(&self) -> Oid
[src]

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.

pub fn path_bytes(&self) -> Option<&'a [u8]>
[src]

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

pub fn path(&self) -> Option<&'a Path>
[src]

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

pub fn size(&self) -> u64
[src]

Returns the size of this entry, in bytes

Auto Trait Implementations

impl<'a> !Send for DiffFile<'a>

impl<'a> !Sync for DiffFile<'a>

Blanket Implementations

impl<T> From for T
[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom for T where
    T: From<U>, 
[src]

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Any for T where
    T: 'static + ?Sized
[src]