pub struct HeuristicEntry {
pub id: HeuristicId,
pub primary_source: ResidualSource,
pub drift_threshold: f64,
pub slew_threshold: f64,
pub drift_positive_required: bool,
pub reason_code: ReasonCode,
pub description: &'static str,
pub provenance: &'static str,
}Expand description
A single entry in the heuristics bank.
Each entry encodes a specific structural pattern recognized by experienced Rust/distributed-systems engineers, formalized into a deterministic matching rule.
Fields§
§id: HeuristicIdUnique identifier (e.g., “H-RAFT-01”).
primary_source: ResidualSourceWhich residual source(s) this heuristic applies to.
drift_threshold: f64Minimum drift magnitude to trigger (absolute value).
slew_threshold: f64Minimum slew magnitude to trigger (absolute value). Use 0.0 for drift-only.
drift_positive_required: boolWhether drift must be positive (true) or magnitude-only (false).
reason_code: ReasonCodeReason code emitted when this heuristic matches.
description: &'static strHuman-readable description of the pattern.
provenance: &'static strRust-specific provenance: what real-world Rust pattern produces this.
Trait Implementations§
Source§impl Clone for HeuristicEntry
impl Clone for HeuristicEntry
Source§fn clone(&self) -> HeuristicEntry
fn clone(&self) -> HeuristicEntry
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 moreSource§impl Debug for HeuristicEntry
impl Debug for HeuristicEntry
impl Copy for HeuristicEntry
Auto Trait Implementations§
impl Freeze for HeuristicEntry
impl RefUnwindSafe for HeuristicEntry
impl Send for HeuristicEntry
impl Sync for HeuristicEntry
impl Unpin for HeuristicEntry
impl UnsafeUnpin for HeuristicEntry
impl UnwindSafe for HeuristicEntry
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