macro_rules! implement_int {
($type:ident, $inner:ty) => { ... };
}
Expand description
A macros for implementing integer types. When you defining a wrapper over ineger type you can Use this macros and all basic operations like conversions, arithmetic, will be implemented for you:
struct MyIntWrapper(u64);
implement_int!(MyIntWrapper, u64);