1pub use impl_macro_internal::*;
2
3pub trait Abs {
4 fn abs(self) -> Self;
5}
6
7imp! { Abs
8 for bool,
9 for char,
10 for u8,
11 for u16,
12 for u32,
13 for u64,
14 for u128,
15 for usize where bool: std::fmt::Display, usize: std::fmt::Display, {
16 fn abs(self) -> Self {
17 self
18 }
19 }
20}