pub struct AttributedCloneGroup {
pub primary_owner: String,
pub token_count: usize,
pub line_count: usize,
pub similarity: Option<f64>,
pub instances: Vec<AttributedInstance>,
}Expand description
A clone group annotated with largest-owner attribution and per-instance owner keys.
Fields§
§primary_owner: StringLargest-owner attribution: the resolver key with the most instances in this clone group. Ties broken alphabetically (smallest key wins).
token_count: usizeNumber of tokens in the clone group.
line_count: usizeNumber of source lines in the clone group.
similarity: Option<f64>Lowest all-pairs similarity for a near-miss clone group.
instances: Vec<AttributedInstance>Each instance carries its own owner field alongside the standard
CloneInstance shape.
Implementations§
Source§impl AttributedCloneGroup
impl AttributedCloneGroup
Sourcepub fn fingerprint(&self, fingerprints: &CloneFingerprintSet) -> String
pub fn fingerprint(&self, fingerprints: &CloneFingerprintSet) -> String
Return the report-scoped fingerprint for this attributed group.
Trait Implementations§
Source§impl Clone for AttributedCloneGroup
impl Clone for AttributedCloneGroup
Source§impl Debug for AttributedCloneGroup
impl Debug for AttributedCloneGroup
Auto Trait Implementations§
impl Freeze for AttributedCloneGroup
impl RefUnwindSafe for AttributedCloneGroup
impl Send for AttributedCloneGroup
impl Sync for AttributedCloneGroup
impl Unpin for AttributedCloneGroup
impl UnsafeUnpin for AttributedCloneGroup
impl UnwindSafe for AttributedCloneGroup
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