Enum gix_diff::rewrites::CopySource
source · pub enum CopySource {
FromSetOfModifiedFiles,
FromSetOfModifiedFilesAndAllSources,
}
Available on crate feature
blob
only.Expand description
Determine in which set of files to search for copies.
Variants§
FromSetOfModifiedFiles
Find copies from the set of modified files only.
FromSetOfModifiedFilesAndAllSources
Find copies from the set of modified files, as well as all files known to the source (i.e. previous state of the tree).
This can be an expensive operation as it scales exponentially with the total amount of files in the set.
Trait Implementations§
source§impl Clone for CopySource
impl Clone for CopySource
source§fn clone(&self) -> CopySource
fn clone(&self) -> CopySource
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 CopySource
impl Debug for CopySource
source§impl Default for CopySource
impl Default for CopySource
source§fn default() -> CopySource
fn default() -> CopySource
Returns the “default value” for a type. Read more
source§impl PartialEq for CopySource
impl PartialEq for CopySource
source§fn eq(&self, other: &CopySource) -> bool
fn eq(&self, other: &CopySource) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for CopySource
impl Eq for CopySource
impl StructuralEq for CopySource
impl StructuralPartialEq for CopySource
Auto Trait Implementations§
impl RefUnwindSafe for CopySource
impl Send for CopySource
impl Sync for CopySource
impl Unpin for CopySource
impl UnwindSafe for CopySource
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