Trait darklua_core::rules::Rule [−][src]
pub trait Rule: RuleConfiguration {
fn process(
&self,
block: &mut Block,
context: &mut Context
) -> RuleProcessResult;
}
Expand description
Defines an interface that will be used to mutate blocks and how to serialize and deserialize the rule configuration.
Required methods
fn process(&self, block: &mut Block, context: &mut Context) -> RuleProcessResult
fn process(&self, block: &mut Block, context: &mut Context) -> RuleProcessResult
This method should mutate the given block to apply the rule.