pub fn add_rule<R: TryInto<Rule>>(&mut self, rule: R) -> Result<(), error::Token>
    where
        error::Token: From<<R as TryInto<Rule>>::Error>,
    {
        let rule = rule.try_into()?;
        self.world.rules.push(rule.convert(&mut self.symbols));
        Ok(())
    }
/// add a rule to the authorizer
add a rule to the authorizer
add a rule to the authorizer
pub fn add_rule<R: TryInto<Rule>>(&mut self, rule: R) -> Result<(), error::Token>
    where
        error::Token: From<<R as TryInto<Rule>>::Error>,
    {
        let rule = rule.try_into()?;
        self.world.rules.push(rule.convert(&mut self.symbols));
        Ok(())
    }
pub fn add_rule < R : TryInto < Rule > > ( & mut self , rule : R ) -> Result < ( ) , error :: Token > where error :: Token : From < < R as TryInto < Rule > > :: Error > , { let rule = rule . try_into ( ) ? ; self . world . rules . push ( rule . convert ( & mut self . symbols ) ) ; Ok ( ( ) ) }
add a rule to the authorizer
add a rule to the authorizer
&mut self
rule
R
&mut self
rule
R