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.

Trait Implementations

Deserialize this value from the given Serde deserializer. Read more

The associated error which can be returned from parsing.

Parses a string s to return a value of this type. Read more

Serialize this value into the given Serde serializer. Read more

Implementors