pub struct TracedCloneGroup {
pub fingerprint: String,
pub token_count: usize,
pub line_count: usize,
pub spread: usize,
pub similarity: Option<f64>,
pub instances: Vec<CloneInstance>,
pub suggestion: RefactoringSuggestion,
pub suggested_name: Option<String>,
}Expand description
One clone group returned from a clone trace request.
Fields§
§fingerprint: StringStable content fingerprint, usually dup:<8hex> and widened on rare
report collisions.
token_count: usizeNumber of tokens in the duplicated block.
line_count: usizeNumber of lines in the duplicated block.
spread: usizeMaximum directory-tree or same-file line distance between instances.
similarity: Option<f64>Lowest all-pairs similarity for a near-miss clone group.
instances: Vec<CloneInstance>Root-relative clone instances in this group.
suggestion: RefactoringSuggestionGroup-level refactoring suggestion.
suggested_name: Option<String>Best-effort name for the extracted function. Advisory only.
Trait Implementations§
Source§impl Debug for TracedCloneGroup
impl Debug for TracedCloneGroup
Auto Trait Implementations§
impl Freeze for TracedCloneGroup
impl RefUnwindSafe for TracedCloneGroup
impl Send for TracedCloneGroup
impl Sync for TracedCloneGroup
impl Unpin for TracedCloneGroup
impl UnsafeUnpin for TracedCloneGroup
impl UnwindSafe for TracedCloneGroup
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