Struct git::FileStatus
source · [−]pub struct FileStatus { /* private fields */ }Expand description
Represents a file change within a Git repository
Implementations
sourceimpl FileStatus
impl FileStatus
sourcepub fn destination_path(&self) -> &Path
pub fn destination_path(&self) -> &Path
Get the destination file path for this change.
sourcepub const fn destination_mode(&self) -> FileMode
pub const fn destination_mode(&self) -> FileMode
Get the destination file mode for this change.
sourcepub const fn destination_is_binary(&self) -> bool
pub const fn destination_is_binary(&self) -> bool
Is the destination file a binary file.
sourcepub fn source_path(&self) -> &Path
pub fn source_path(&self) -> &Path
Get the source file path for this change.
sourcepub const fn source_mode(&self) -> FileMode
pub const fn source_mode(&self) -> FileMode
Get the source file mode for this change.
sourcepub const fn source_is_binary(&self) -> bool
pub const fn source_is_binary(&self) -> bool
Is the source file a binary file.
sourcepub const fn last_old_line_number(&self) -> u32
pub const fn last_old_line_number(&self) -> u32
Get the line number of the last old changed line.
sourcepub const fn last_new_line_number(&self) -> u32
pub const fn last_new_line_number(&self) -> u32
Get the line number of the last new changed line.
Trait Implementations
sourceimpl Clone for FileStatus
impl Clone for FileStatus
sourcefn clone(&self) -> FileStatus
fn clone(&self) -> FileStatus
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for FileStatus
impl Debug for FileStatus
sourceimpl PartialEq<FileStatus> for FileStatus
impl PartialEq<FileStatus> for FileStatus
sourcefn eq(&self, other: &FileStatus) -> bool
fn eq(&self, other: &FileStatus) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &FileStatus) -> bool
fn ne(&self, other: &FileStatus) -> bool
This method tests for !=.
impl StructuralPartialEq for FileStatus
Auto Trait Implementations
impl RefUnwindSafe for FileStatus
impl Send for FileStatus
impl Sync for FileStatus
impl Unpin for FileStatus
impl UnwindSafe for FileStatus
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more