pub enum ChangeStatus {
Added,
Modified,
Deleted,
}Expand description
How a file changed relative to the comparison baseline — for review labelling.
Variants§
Added
A new file, absent from the baseline (e.g. a brand-new untracked file).
Modified
Present on both sides, with different content.
Deleted
Removed from the working tree (or the HEAD side of a range).
Implementations§
Trait Implementations§
Source§impl Clone for ChangeStatus
impl Clone for ChangeStatus
Source§fn clone(&self) -> ChangeStatus
fn clone(&self) -> ChangeStatus
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ChangeStatus
Source§impl Debug for ChangeStatus
impl Debug for ChangeStatus
impl Eq for ChangeStatus
Source§impl PartialEq for ChangeStatus
impl PartialEq for ChangeStatus
impl StructuralPartialEq for ChangeStatus
Auto Trait Implementations§
impl Freeze for ChangeStatus
impl RefUnwindSafe for ChangeStatus
impl Send for ChangeStatus
impl Sync for ChangeStatus
impl Unpin for ChangeStatus
impl UnsafeUnpin for ChangeStatus
impl UnwindSafe for ChangeStatus
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,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.