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 StructuralPartialEq for ChangeKind
Auto Trait Implementations§
impl Freeze for ChangeKind
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)