pub struct ClauseStats {
pub label: String,
pub evaluated: usize,
pub matched: usize,
}Expand description
Per-clause aggregated stats across a candidate corpus.
Merged by label: two structurally-equal clauses (same variant,
same key, same value) share one ClauseStats entry. This is
generally what an operator wants — “how often does
MetadataEquals(intent=ml-training) succeed?” doesn’t depend on
where in the AST that clause sits.
Fields§
§label: StringClause label (matches the label field on ClauseTrace).
evaluated: usizeNumber of candidates whose evaluation reached this clause (i.e. wasn’t short-circuited away by an earlier sibling).
matched: usizeNumber of those evaluations that returned true.
Trait Implementations§
Source§impl Clone for ClauseStats
impl Clone for ClauseStats
Source§fn clone(&self) -> ClauseStats
fn clone(&self) -> ClauseStats
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ClauseStats
impl Debug for ClauseStats
Source§impl Default for ClauseStats
impl Default for ClauseStats
Source§fn default() -> ClauseStats
fn default() -> ClauseStats
Returns the “default value” for a type. Read more
Source§impl PartialEq for ClauseStats
impl PartialEq for ClauseStats
Source§fn eq(&self, other: &ClauseStats) -> bool
fn eq(&self, other: &ClauseStats) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ClauseStats
Auto Trait Implementations§
impl Freeze for ClauseStats
impl RefUnwindSafe for ClauseStats
impl Send for ClauseStats
impl Sync for ClauseStats
impl Unpin for ClauseStats
impl UnsafeUnpin for ClauseStats
impl UnwindSafe for ClauseStats
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