pub struct SemanticRule {
pub id: &'static str,
pub version: u32,
pub confidence: f64,
pub scope: SemanticRuleScope,
pub pattern: SemanticRulePattern,
pub matcher: SemanticRuleMatcher,
}Expand description
A registered, explainable SOG correspondence rule.
Fields§
§id: &'static strStable registry identifier.
version: u32Rule semantics revision.
confidence: f64Conservative confidence before later data-flow evidence is applied.
scope: SemanticRuleScopeComparison domain where the rule may run.
pattern: SemanticRulePatternClosed operation pattern the rule is allowed to explain.
matcher: SemanticRuleMatcherClosed matching strategy selected by this rule’s declaration.
Trait Implementations§
Source§impl Clone for SemanticRule
impl Clone for SemanticRule
Source§fn clone(&self) -> SemanticRule
fn clone(&self) -> SemanticRule
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 moreimpl Copy for SemanticRule
Source§impl Debug for SemanticRule
impl Debug for SemanticRule
Source§impl PartialEq for SemanticRule
impl PartialEq for SemanticRule
impl StructuralPartialEq for SemanticRule
Auto Trait Implementations§
impl Freeze for SemanticRule
impl RefUnwindSafe for SemanticRule
impl Send for SemanticRule
impl Sync for SemanticRule
impl Unpin for SemanticRule
impl UnsafeUnpin for SemanticRule
impl UnwindSafe for SemanticRule
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