pub struct RuleSet { /* private fields */ }Expand description
Every §11.2 rule, in one evaluable set.
Implementations§
Source§impl RuleSet
impl RuleSet
Sourcepub fn new(thresholds: Thresholds) -> Self
pub fn new(thresholds: Thresholds) -> Self
Builds the full §11.2 rule set from configuration.
Sourcepub fn evaluate(
&self,
current: &SystemSnapshot,
history: &HistoryWindow<'_>,
) -> Vec<Finding>
pub fn evaluate( &self, current: &SystemSnapshot, history: &HistoryWindow<'_>, ) -> Vec<Finding>
Evaluates every rule, most severe first.
The order is total and stable — severity descending, then rule id — so the
Inspect screen does not reshuffle between frames (§7.5). Returns nothing at
all when diagnostics.enabled is false (§12).
Sourcepub fn rules(&self) -> &[Box<dyn DiagnosticRule>]
pub fn rules(&self) -> &[Box<dyn DiagnosticRule>]
The rules in the set.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for RuleSet
impl !UnwindSafe for RuleSet
impl Freeze for RuleSet
impl Send for RuleSet
impl Sync for RuleSet
impl Unpin for RuleSet
impl UnsafeUnpin for RuleSet
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