pub struct CloneFamily {
pub files: Vec<PathBuf>,
pub groups: Vec<CloneGroup>,
pub total_duplicated_lines: usize,
pub total_duplicated_tokens: usize,
pub suggestions: Vec<RefactoringSuggestion>,
}Expand description
A clone family: a set of clone groups that share the same file set.
When multiple clone groups are all duplicated between the same set of files, they form a family, indicating a deeper structural relationship that should be refactored together rather than group-by-group.
Fields§
§files: Vec<PathBuf>The files involved in this family (sorted for stable output).
groups: Vec<CloneGroup>Clone groups belonging to this family.
total_duplicated_lines: usizeTotal number of duplicated lines across all groups.
total_duplicated_tokens: usizeTotal number of duplicated tokens across all groups.
suggestions: Vec<RefactoringSuggestion>Refactoring suggestions for this family.
Trait Implementations§
Source§impl Clone for CloneFamily
impl Clone for CloneFamily
Source§impl Debug for CloneFamily
impl Debug for CloneFamily
Source§impl<'de> Deserialize<'de> for CloneFamily
impl<'de> Deserialize<'de> for CloneFamily
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Forget for CloneFamily
impl Freeze for CloneFamilywhere
*const u8 is !null: Freeze,
PhantomData<PathBuf>: Freeze,
PhantomData<CloneGroup>: Freeze,
PhantomData<RefactoringSuggestion>: Freeze,
impl Move for CloneFamily
impl RefUnwindSafe for CloneFamily
impl Send for CloneFamilywhere
RawVecInner: Send,
impl Sync for CloneFamilywhere
RawVecInner: Sync,
impl Unpin for CloneFamily
impl UnsafeUnpin for CloneFamilywhere
*const u8 is !null: UnsafeUnpin,
PhantomData<PathBuf>: UnsafeUnpin,
PhantomData<CloneGroup>: UnsafeUnpin,
PhantomData<RefactoringSuggestion>: UnsafeUnpin,
impl UnwindSafe for CloneFamilywhere
RawVecInner: UnwindSafe,
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