Enum gix_diff::rewrites::tracker::ChangeKind
source · pub enum ChangeKind {
Deletion,
Modification,
Addition,
}
Available on crate feature
blob
only.Expand description
The kind of a change.
Variants§
Deletion
The change represents the deletion of an item.
Modification
The change represents the modification of an item.
Addition
The change represents the addition of an item.
Trait Implementations§
source§impl Clone for ChangeKind
impl Clone for ChangeKind
source§fn clone(&self) -> ChangeKind
fn clone(&self) -> ChangeKind
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 ChangeKind
impl Debug for ChangeKind
source§impl Ord for ChangeKind
impl Ord for ChangeKind
source§fn cmp(&self, other: &ChangeKind) -> Ordering
fn cmp(&self, other: &ChangeKind) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for ChangeKind
impl PartialEq for ChangeKind
source§fn eq(&self, other: &ChangeKind) -> bool
fn eq(&self, other: &ChangeKind) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for ChangeKind
impl PartialOrd for ChangeKind
source§fn partial_cmp(&self, other: &ChangeKind) -> Option<Ordering>
fn partial_cmp(&self, other: &ChangeKind) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for ChangeKind
impl Eq for ChangeKind
impl StructuralEq for ChangeKind
impl StructuralPartialEq for ChangeKind
Auto Trait Implementations§
impl RefUnwindSafe for ChangeKind
impl Send for ChangeKind
impl Sync for ChangeKind
impl Unpin for ChangeKind
impl UnwindSafe for ChangeKind
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
§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