const_ops 0.2.2

const-ready version of core::ops / std::ops arithmetic traits
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use crate::BitAndAssign;

macro_rules! bitand_assign_impl {
    ($($t:ty)+) => ($(
        impl const BitAndAssign for $t {
            #[inline]
            fn bitand_assign(&mut self, other: $t) { *self &= other }
        }

    )+)
}

bitand_assign_impl! { bool usize u8 u16 u32 u64 u128 isize i8 i16 i32 i64 i128 }