Enum gix_diff::blob::ResourceKind
source · pub enum ResourceKind {
OldOrSource,
NewOrDestination,
}
Available on crate feature
blob
only.Expand description
A way to classify a resource suitable for diffing.
Variants§
OldOrSource
The source of a rewrite, rename or copy operation, or generally the old version of a resource.
NewOrDestination
The destination of a rewrite, rename or copy operation, or generally the new version of a resource.
Trait Implementations§
source§impl Clone for ResourceKind
impl Clone for ResourceKind
source§fn clone(&self) -> ResourceKind
fn clone(&self) -> ResourceKind
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 ResourceKind
impl Debug for ResourceKind
source§impl Display for ResourceKind
impl Display for ResourceKind
source§impl Hash for ResourceKind
impl Hash for ResourceKind
source§impl Ord for ResourceKind
impl Ord for ResourceKind
source§fn cmp(&self, other: &ResourceKind) -> Ordering
fn cmp(&self, other: &ResourceKind) -> 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 ResourceKind
impl PartialEq for ResourceKind
source§fn eq(&self, other: &ResourceKind) -> bool
fn eq(&self, other: &ResourceKind) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for ResourceKind
impl PartialOrd for ResourceKind
source§fn partial_cmp(&self, other: &ResourceKind) -> Option<Ordering>
fn partial_cmp(&self, other: &ResourceKind) -> 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 ResourceKind
impl Eq for ResourceKind
impl StructuralEq for ResourceKind
impl StructuralPartialEq for ResourceKind
Auto Trait Implementations§
impl RefUnwindSafe for ResourceKind
impl Send for ResourceKind
impl Sync for ResourceKind
impl Unpin for ResourceKind
impl UnwindSafe for ResourceKind
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