pub enum DuplicationMode {
Strict,
Mild,
Weak,
Semantic,
}Expand description
Programmatic duplication mode selection.
Variants§
Strict
Preserve all tokens, including identifier names and literal values (Type-1 clones only).
Mild
Default mode, equivalent to strict for AST-based tokenization.
Weak
Blind string literal values while preserving structure.
Semantic
Blind all identifiers and literal values for structural (Type-2) detection.
Trait Implementations§
Source§impl Clone for DuplicationMode
impl Clone for DuplicationMode
impl Copy for DuplicationMode
Source§impl Debug for DuplicationMode
impl Debug for DuplicationMode
Auto Trait Implementations§
impl Freeze for DuplicationMode
impl RefUnwindSafe for DuplicationMode
impl Send for DuplicationMode
impl Sync for DuplicationMode
impl Unpin for DuplicationMode
impl UnsafeUnpin for DuplicationMode
impl UnwindSafe for DuplicationMode
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§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more