Trait darklua_core::rules::RuleConfiguration[][src]

pub trait RuleConfiguration {
    fn configure(
        &mut self,
        properties: RuleProperties
    ) -> Result<(), RuleConfigurationError>;
fn get_name(&self) -> &'static str;
fn serialize_to_properties(&self) -> RuleProperties; }

Required methods

fn configure(
    &mut self,
    properties: RuleProperties
) -> Result<(), RuleConfigurationError>
[src]

The rule deserializer will construct the default rule and then send the properties through this method to modify the behavior of the rule.

fn get_name(&self) -> &'static str[src]

This method should the unique name of the rule.

fn serialize_to_properties(&self) -> RuleProperties[src]

For implementing the serialize trait on the Rule trait, this method should return all properties that differs from their default value.

Loading content...

Implementors

impl RuleConfiguration for ComputeExpression[src]

impl RuleConfiguration for ConvertLocalFunctionToAssign[src]

impl RuleConfiguration for GroupLocalAssignment[src]

impl RuleConfiguration for InjectGlobalValue[src]

impl RuleConfiguration for RemoveEmptyDo[src]

impl RuleConfiguration for RemoveFunctionCallParens[src]

impl RuleConfiguration for RemoveMethodDefinition[src]

impl RuleConfiguration for RemoveUnusedIfBranch[src]

impl RuleConfiguration for RemoveUnusedWhile[src]

impl RuleConfiguration for RenameVariables[src]

Loading content...