pub struct Deviation {
pub rule_id: String,
pub file: String,
pub symbol: CompactString,
pub matched_golden: GoldenSelector,
pub all_golden_scores: Vec<GoldenMatch>,
pub similarity: SimilarityScore,
pub differences: Differences,
}Expand description
Result of comparing one function against all goldens of a rule.
matched_golden is the highest-scoring golden (= all_golden_scores[0]).
similarity mirrors matched_golden.similarity for ergonomic access.
Fields§
§rule_id: String§file: String§symbol: CompactString§matched_golden: GoldenSelector§all_golden_scores: Vec<GoldenMatch>§similarity: SimilarityScore§differences: DifferencesTrait Implementations§
impl StructuralPartialEq for Deviation
Auto Trait Implementations§
impl Freeze for Deviation
impl RefUnwindSafe for Deviation
impl Send for Deviation
impl Sync for Deviation
impl Unpin for Deviation
impl UnsafeUnpin for Deviation
impl UnwindSafe for Deviation
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