pub struct MatchResult {
pub reason_code: ReasonCode,
pub matched_heuristic: Option<HeuristicId>,
pub confidence: f64,
pub description: &'static str,
pub provenance: &'static str,
pub applied_prior: Option<AppliedStaticPrior>,
}Expand description
Result of matching a residual sign against the heuristics bank.
Fields§
§reason_code: ReasonCodeThe reason code from the best-matching heuristic, or
UnclassifiedStructuralAnomaly if no match.
matched_heuristic: Option<HeuristicId>The heuristic ID that matched, if any.
confidence: f64Match confidence: how strongly the residual sign matches the pattern. 0.0 = no match, 1.0 = exact match. Based on how far past thresholds.
description: &'static strHuman-readable description of the matched structural pattern.
provenance: &'static strRust-specific provenance of the matched structural pattern.
applied_prior: Option<AppliedStaticPrior>Static prior applied to the winning heuristic, if any.
Trait Implementations§
Source§impl Clone for MatchResult
impl Clone for MatchResult
Source§fn clone(&self) -> MatchResult
fn clone(&self) -> MatchResult
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for MatchResult
impl RefUnwindSafe for MatchResult
impl Send for MatchResult
impl Sync for MatchResult
impl Unpin for MatchResult
impl UnsafeUnpin for MatchResult
impl UnwindSafe for MatchResult
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