pub struct CloneMatch {
pub source_start: usize,
pub target_start: usize,
pub length: usize,
pub target_length: usize,
pub similarity: f64,
}Expand description
Represents a detected duplicate code block
Fields§
§source_start: usize§target_start: usize§length: usizeLength of the matched region in the source sequence
target_length: usizeLength of the matched region in the target sequence (may differ for Type-3)
similarity: f64Token-level similarity (0.0-1.0). 1.0 for Type-1/2, calculated for Type-3
Trait Implementations§
Source§impl Clone for CloneMatch
impl Clone for CloneMatch
Source§fn clone(&self) -> CloneMatch
fn clone(&self) -> CloneMatch
Returns a duplicate 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 moreAuto Trait Implementations§
impl Freeze for CloneMatch
impl RefUnwindSafe for CloneMatch
impl Send for CloneMatch
impl Sync for CloneMatch
impl Unpin for CloneMatch
impl UnwindSafe for CloneMatch
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> 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