#[non_exhaustive]pub enum RenameDetection {
Off,
Similarity(u8),
}Expand description
Rename detection policy for tree diffs.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Off
Do not detect renames.
Similarity(u8)
Detect renames when similarity is at least this percent (Git -M default 50).
Implementations§
Source§impl RenameDetection
impl RenameDetection
Sourcepub fn threshold_percent(self) -> Option<u32>
pub fn threshold_percent(self) -> Option<u32>
Git rename threshold, or None when renames are disabled.
Trait Implementations§
Source§impl Clone for RenameDetection
impl Clone for RenameDetection
impl Copy for RenameDetection
Source§impl Debug for RenameDetection
impl Debug for RenameDetection
Source§impl Default for RenameDetection
impl Default for RenameDetection
impl Eq for RenameDetection
Source§impl PartialEq for RenameDetection
impl PartialEq for RenameDetection
impl StructuralPartialEq for RenameDetection
Auto Trait Implementations§
impl Freeze for RenameDetection
impl RefUnwindSafe for RenameDetection
impl Send for RenameDetection
impl Sync for RenameDetection
impl Unpin for RenameDetection
impl UnsafeUnpin for RenameDetection
impl UnwindSafe for RenameDetection
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