const_ops/impls/
add.rs

1use crate::Add;
2
3macro_rules! add_impl {
4    ($($t:ty)*) => ($(
5
6        impl const Add for $t {
7            type Output = $t;
8
9            #[inline]
10            fn add(self, other: $t) -> $t { self + other }
11        }
12
13        //forward_ref_binop! { impl Add, add for $t, $t }
14    )*)
15}
16
17add_impl! { usize u8 u16 u32 u64 u128 isize i8 i16 i32 i64 i128 f32 f64}