Skip to main content

text_rule

Function text_rule 

Source
pub fn text_rule(spec: TextRuleSpec) -> Box<dyn DocRule>
Expand description

Attach required / forbidden phrase checks to the WHOLE document — a cross-plane DocRule for a contract’s rules slot. A requires miss is document-level (no position); each forbids hit anchors at the exact offending source line.

§Panics

As requires and forbids do.