1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
macro_rules! tx_deref {
    ($ty:ty) => {
        impl std::ops::Deref for $ty {
            type Target = Tx;

            #[inline(always)]
            fn deref(&self) -> &Tx {
                &self.base
            }
        }
    };
}