pub struct FileChanges {
pub file: PathBuf,
pub status: FileChangesStatus,
}Fields§
§file: PathBufFile in question
status: FileChangesStatusStatus of the file
Implementations§
Source§impl FileChanges
impl FileChanges
pub fn new<P: AsRef<Path>>(path: P, status: FileChangesStatus) -> Self
Sourcepub fn from_markedfile_custom(
marked_file: &MarkedFile,
status_modified: FileChangesStatus,
status_unmodified: FileChangesStatus,
) -> Self
pub fn from_markedfile_custom( marked_file: &MarkedFile, status_modified: FileChangesStatus, status_unmodified: FileChangesStatus, ) -> Self
Create a new instance based on if the input file is modified or not
using either status_modified or status_unmodified
Trait Implementations§
Source§impl Clone for FileChanges
impl Clone for FileChanges
Source§fn clone(&self) -> FileChanges
fn clone(&self) -> FileChanges
Returns a duplicate 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 FileChanges
impl Debug for FileChanges
Source§impl PartialEq for FileChanges
impl PartialEq for FileChanges
impl Eq for FileChanges
impl StructuralPartialEq for FileChanges
Auto Trait Implementations§
impl Freeze for FileChanges
impl RefUnwindSafe for FileChanges
impl Send for FileChanges
impl Sync for FileChanges
impl Unpin for FileChanges
impl UnwindSafe for FileChanges
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