pub enum FileStatus {
Modified,
Added,
Deleted,
Renamed,
Copied,
Typechange,
Unmerged,
Untracked,
}Expand description
How git classified one file’s change.
Lives here rather than in the scanner because it crosses: the snapshot a view reads and the row it draws carry the same glyph, and one shape for both is what keeps them agreeing.
Variants§
Modified
Added
Deleted
Renamed
Copied
Typechange
File mode changed (regular to symlink, file to submodule).
Unmerged
Unmerged - caught mid-merge-conflict.
Untracked
Trait Implementations§
Source§impl Clone for FileStatus
impl Clone for FileStatus
impl Copy for FileStatus
Source§impl Debug for FileStatus
impl Debug for FileStatus
Source§impl Default for FileStatus
impl Default for FileStatus
Source§impl<'de> Deserialize<'de> for FileStatus
impl<'de> Deserialize<'de> for FileStatus
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for FileStatus
Source§impl PartialEq for FileStatus
impl PartialEq for FileStatus
Source§impl Serialize for FileStatus
impl Serialize 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 UnsafeUnpin 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.