RuleTrait

Trait RuleTrait 

Source
pub trait RuleTrait {
    // Required methods
    fn name(&self) -> String;
    fn call(
        &self,
        smartcalc: &SmartCalcConfig,
        fields: &BTreeMap<String, TokenType>,
    ) -> Option<TokenType>;
}

Required Methods§

Source

fn name(&self) -> String

Source

fn call( &self, smartcalc: &SmartCalcConfig, fields: &BTreeMap<String, TokenType>, ) -> Option<TokenType>

Implementors§