pub struct FileStatus { /* private fields */ }
Expand description
Represents a file change within a Git repository
Implementations§
Source§impl 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§
Source§impl Clone for FileStatus
impl Clone for FileStatus
Source§fn clone(&self) -> FileStatus
fn clone(&self) -> FileStatus
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for FileStatus
impl Debug for FileStatus
Source§impl PartialEq for FileStatus
impl PartialEq for FileStatus
impl Eq for FileStatus
impl StructuralPartialEq for FileStatus
Auto Trait Implementations§
impl Freeze for FileStatus
impl RefUnwindSafe for FileStatus
impl Send for FileStatus
impl Sync for FileStatus
impl Unpin for FileStatus
impl UnwindSafe for FileStatus
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more