pub fn add_policy<P: TryInto<Policy>>(&mut self, policy: P) -> Result<(), error::Token>
    where
        error::Token: From<<P as TryInto<Policy>>::Error>,
    {
        let policy = policy.try_into()?;
        self.policies.push(policy);
        Ok(())
    }
/// add a policy to the authorizer
add a policy to the authorizer
add a policy to the authorizer
pub fn add_policy<P: TryInto<Policy>>(&mut self, policy: P) -> Result<(), error::Token>
    where
        error::Token: From<<P as TryInto<Policy>>::Error>,
    {
        let policy = policy.try_into()?;
        self.policies.push(policy);
        Ok(())
    }
pub fn add_policy < P : TryInto < Policy > > ( & mut self , policy : P ) -> Result < ( ) , error :: Token > where error :: Token : From < < P as TryInto < Policy > > :: Error > , { let policy = policy . try_into ( ) ? ; self . policies . push ( policy ) ; Ok ( ( ) ) }
add a policy to the authorizer
add a policy to the authorizer
&mut self
policy
P
&mut self
policy
P