ex3-node-types 0.15.166

EX3 main node types.
Documentation
use num_traits::Pow;

use super::Ex3Uint;

#[macro_export(local_inner_macros)]
macro_rules! impl_pow_uint_for {
  ($for_type:ty, $($t:ty),*) => {
    $(
      impl Pow<$t> for $for_type {
        type Output = $for_type;

        fn pow(self, rhs: $t) -> Self::Output {
          <$for_type>::from(self.0.pow(rhs))
        }
      }
    )*
  };
}

impl_pow_uint_for!(Ex3Uint, u8, u16, u32, u64, u128, usize);