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

This method should mutate the given block to apply the rule.

Implementors