pub struct StaticPrior {
pub heuristic_id: HeuristicId,
pub confidence: f64,
pub drift_scale: f64,
pub slew_scale: f64,
}Expand description
Static prior for one heuristic, typically sourced from the crate scanner.
The scales are bounded threshold multipliers. Values lower than 1.0
make the heuristic easier to trigger, while values above 1.0 make it
harder to trigger. The observer clamps them to a safe range.
Fields§
§heuristic_id: HeuristicIdHeuristic to which the prior applies.
confidence: f64Confidence assigned by the static scanner or caller, in [0.0, 1.0].
drift_scale: f64Drift-threshold scale factor.
slew_scale: f64Slew-threshold scale factor.
Implementations§
Source§impl StaticPrior
impl StaticPrior
Trait Implementations§
Source§impl Clone for StaticPrior
impl Clone for StaticPrior
Source§fn clone(&self) -> StaticPrior
fn clone(&self) -> StaticPrior
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 StaticPrior
impl Debug for StaticPrior
Source§impl PartialEq for StaticPrior
impl PartialEq for StaticPrior
impl Copy for StaticPrior
impl StructuralPartialEq for StaticPrior
Auto Trait Implementations§
impl Freeze for StaticPrior
impl RefUnwindSafe for StaticPrior
impl Send for StaticPrior
impl Sync for StaticPrior
impl Unpin for StaticPrior
impl UnsafeUnpin for StaticPrior
impl UnwindSafe for StaticPrior
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