Skip to main content

RuleProvider

Trait RuleProvider 

Source
pub trait RuleProvider: Send + Sync {
    // Required methods
    fn id(&self) -> &str;
    fn rules(&self) -> Vec<RuleEntry>;
}
Expand description

A place rule documents come from.

Ordered by the caller: a later source’s entry replaces an earlier one of the same name, which is how project beats scene beats global.

Required Methods§

Source

fn id(&self) -> &str

Source

fn rules(&self) -> Vec<RuleEntry>

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§