pub enum ConditionTrace {
Selection {
name: String,
matched: bool,
detection: DetectionTrace,
},
And {
matched: bool,
children: Vec<ConditionTrace>,
},
Or {
matched: bool,
children: Vec<ConditionTrace>,
},
Not {
matched: bool,
child: Box<ConditionTrace>,
},
Quantified {
quantifier: String,
matched: bool,
need: u64,
got: u64,
branches: Vec<SelectionBranch>,
},
}Expand description
A node in the explained condition tree, mirroring
ConditionExpr.
Variants§
Selection
A named selection reference (selection), with its detection trace.
And
a and b and ....
Or
a or b or ....
Not
not a.
Quantified
A quantified selector such as 1 of selection_* or all of them.
Implementations§
Trait Implementations§
Source§impl Clone for ConditionTrace
impl Clone for ConditionTrace
Source§impl Debug for ConditionTrace
impl Debug for ConditionTrace
Auto Trait Implementations§
impl Freeze for ConditionTrace
impl RefUnwindSafe for ConditionTrace
impl Send for ConditionTrace
impl Sync for ConditionTrace
impl Unpin for ConditionTrace
impl UnsafeUnpin for ConditionTrace
impl UnwindSafe for ConditionTrace
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