Trait darklua_core::rules::Rule[][src]

pub trait Rule: RuleConfiguration {
    fn process(
        &self,
        block: &mut Block,
        context: &mut Context
    ) -> RuleProcessResult; }

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[src]

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

Loading content...

Implementors

impl<T: FlawlessRule + RuleConfiguration> Rule for T[src]

Loading content...