pub struct Priority {
pub clone_confidence: f64,
pub maintenance_risk: f64,
pub refactoring_difficulty: f64,
pub final_priority: f64,
pub semantic_confidence: Option<f64>,
pub source_artifact_confidence: Option<f64>,
pub savings_confidence: Option<f64>,
pub inputs: GroupFacts,
}Expand description
Where one clone group belongs in a report, and on what grounds.
Fields§
§clone_confidence: f64How sure the finding is duplication worth reporting, on 0..1.
maintenance_risk: f64What keeping the copies in step costs, on 0..1.
refactoring_difficulty: f64What removing the duplication would cost, on 0..1.
final_priority: f64The composed ranking value, on 0..1.
semantic_confidence: Option<f64>How sure the finding is semantically equivalent. Reserved for the compiler backends; absent until one runs.
source_artifact_confidence: Option<f64>How sure the source is the source of a given artifact. Reserved for the artifact backends.
savings_confidence: Option<f64>How sure the reported savings are. Reserved: nothing measures savings yet, and a number here would be read as a guarantee.
inputs: GroupFactsThe facts every measure above was read from.
Trait Implementations§
impl Copy for Priority
impl StructuralPartialEq for Priority
Auto Trait Implementations§
impl Freeze for Priority
impl RefUnwindSafe for Priority
impl Send for Priority
impl Sync for Priority
impl Unpin for Priority
impl UnsafeUnpin for Priority
impl UnwindSafe for Priority
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