pub struct CloneAnalysis {
pub pairs: Vec<ClonePair>,
pub families: Vec<CloneFamily>,
pub total_methods: usize,
pub cloned_methods: usize,
pub clone_ratio: f64,
}Expand description
Whole-graph clone-detection readout.
Fields§
§pairs: Vec<ClonePair>§families: Vec<CloneFamily>§total_methods: usize§cloned_methods: usizeDistinct (node_id, name) keys that participate in any clone pair.
clone_ratio: f64Trait Implementations§
Source§impl Clone for CloneAnalysis
impl Clone for CloneAnalysis
Source§fn clone(&self) -> CloneAnalysis
fn clone(&self) -> CloneAnalysis
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CloneAnalysis
impl Debug for CloneAnalysis
Source§impl<'de> Deserialize<'de> for CloneAnalysis
impl<'de> Deserialize<'de> for CloneAnalysis
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 Freeze for CloneAnalysis
impl RefUnwindSafe for CloneAnalysis
impl Send for CloneAnalysis
impl Sync for CloneAnalysis
impl Unpin for CloneAnalysis
impl UnsafeUnpin for CloneAnalysis
impl UnwindSafe for CloneAnalysis
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