Skip to main content

RuleSet

Trait RuleSet 

Source
pub trait RuleSet: Send + Sync {
    // Required methods
    fn rules(&self) -> &[Box<dyn Rule>];
    fn schema_version(&self) -> &'static str;
}
Expand description

A collection of rules provided by a rule crate. Returned by the rule crate’s entry point function.

Required Methods§

Source

fn rules(&self) -> &[Box<dyn Rule>]

Source

fn schema_version(&self) -> &'static str

Implementors§